1
This commit is contained in:
parent
3e2f90bc36
commit
4e6da48979
@ -587,7 +587,9 @@ void Creature::RecalcBuffAttr()
|
||||
|
||||
void Creature::OnBuffRemove(Buff& buff)
|
||||
{
|
||||
|
||||
if (!buff.meta->i->only_server()) {
|
||||
room->frame_event.RemoveBuff(GetWeakPtrRef(), buff.meta->i->buff_id());
|
||||
}
|
||||
}
|
||||
|
||||
void Creature::RemoveBuffByEffectId(int buff_effect_id)
|
||||
|
@ -216,11 +216,11 @@ class Creature : public MoveableEntity
|
||||
|
||||
protected:
|
||||
|
||||
virtual void OnBuffRemove(Buff& buff);
|
||||
|
||||
private:
|
||||
|
||||
virtual void AddBuffPostProc(Creature* caster, Buff* buff);
|
||||
virtual void OnBuffRemove(Buff& buff);
|
||||
virtual void DoSkillPreProc(int skill_id, int target_id, const a8::Vec2& target_pos);
|
||||
virtual void DoSkillPostProc(bool used, int skill_id, int target_id, const a8::Vec2& target_pos);
|
||||
|
||||
|
@ -3201,6 +3201,7 @@ void Human::ProcReliveAction()
|
||||
|
||||
void Human::OnBuffRemove(Buff& buff)
|
||||
{
|
||||
Creature::OnBuffRemove(buff);
|
||||
switch (buff.meta->i->buff_effect()) {
|
||||
case kBET_Jump:
|
||||
{
|
||||
@ -3263,9 +3264,6 @@ void Human::OnBuffRemove(Buff& buff)
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (!buff.meta->i->only_server()) {
|
||||
room->frame_event.RemoveBuff(GetWeakPtrRef(), buff.meta->i->buff_id());
|
||||
}
|
||||
}
|
||||
|
||||
void Human::OnLand()
|
||||
|
Loading…
x
Reference in New Issue
Block a user