1
This commit is contained in:
parent
fe4ee20929
commit
9654c35e61
@ -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()
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user