This commit is contained in:
aozhiwei 2022-09-13 20:37:13 +08:00
parent fe4ee20929
commit 9654c35e61
3 changed files with 20 additions and 0 deletions

View File

@ -939,6 +939,14 @@ void Buff::ProcMachineGun()
caster_.Get()->need_sync_active_player = true;
caster_.Get()->SyncAroundPlayers(__FILE__, __LINE__, __func__);
}
if (skill_meta) {
if (skill_meta->GetMagicId() == MAGIC_FG) {
bool shot_ok = false;
a8::Vec2 target_dir = owner->GetAttackDir();
owner->last_shot_frameno_ = 0;
owner->Shot(target_dir, shot_ok, 5);
}
}
}
void Buff::ProcRemoveMachineGun()

View File

@ -353,6 +353,12 @@ float Human::GetSpeed()
return buff->meta->param2;
}
}
{
Buff* buff = GetBuffByEffectId(kBET_HoldShield);
if (buff) {
return buff->meta->param1;
}
}
{
Buff* buff = GetBuffByEffectId(kBET_Jump);
if (buff) {

View File

@ -275,6 +275,12 @@ void Player::UpdateShot()
series_shot_frames = 0;
return;
}
if (HasBuffEffect(kBET_HoldShield)) {
shot_start = false;
shot_hold = false;
series_shot_frames = 0;
return;
}
if (HasBuffEffect(kBET_Sprint)) {
shot_start = false;
shot_hold = false;