This commit is contained in:
aozhiwei 2019-07-19 21:52:17 +08:00
parent 207abaedda
commit d3c0203c59

View File

@ -213,6 +213,10 @@ void Human::Shot()
CancelAction();
}
if (HasBuffEffect(BET_Hide)) {
RemoveBuffByEffectId(BET_Hide);
}
DirectShot(curr_weapon->meta, 0);
if (curr_weapon->meta->NeedTrace()) {
room->xtimer.AddDeadLineTimerAndAttach(curr_weapon->meta->i->time() * SERVER_FRAME_RATE,
@ -1400,9 +1404,6 @@ void Human::ProcBuffEffect(Buff* buff)
void Human::OnAttack()
{
if (HasBuffEffect(BET_Hide)) {
RemoveBuffByEffectId(BET_Hide);
}
GrassTempShow();
}