1
This commit is contained in:
parent
0a929504c6
commit
f0e9712b6c
@ -3538,3 +3538,9 @@ void Creature::ClearIgnoreTarget()
|
|||||||
DelIgnoreTarget(id);
|
DelIgnoreTarget(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Creature::SetLastAttacker(CreatureWeakPtr& attacker)
|
||||||
|
{
|
||||||
|
last_attacker_ = attacker;
|
||||||
|
last_beattack_frameno_ = room->GetFrameNo();
|
||||||
|
}
|
||||||
|
@ -374,6 +374,10 @@ class Creature : public MoveableEntity
|
|||||||
void DelIgnoreTarget(int target_uniid);
|
void DelIgnoreTarget(int target_uniid);
|
||||||
bool IsIgnoreTarget(int target_uniid);
|
bool IsIgnoreTarget(int target_uniid);
|
||||||
void ClearIgnoreTarget();
|
void ClearIgnoreTarget();
|
||||||
|
void SetLastAttacker(CreatureWeakPtr& attacker);
|
||||||
|
CreatureWeakPtr& GetLastAttacker() { return last_attacker_; }
|
||||||
|
long long GetLastBeAttackFrameNo() { return last_beattack_frameno_; }
|
||||||
|
int GetLastAttackerReviveTimes() { return last_attacker_revive_times_; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void OnBuffRemove(Buff& buff);
|
virtual void OnBuffRemove(Buff& buff);
|
||||||
@ -461,6 +465,10 @@ private:
|
|||||||
|
|
||||||
std::map<int, a8::XTimerWp> ignore_target_hash_;
|
std::map<int, a8::XTimerWp> ignore_target_hash_;
|
||||||
|
|
||||||
|
CreatureWeakPtr last_attacker_;
|
||||||
|
int last_attacker_revive_times_ = 0;
|
||||||
|
long long last_beattack_frameno_;
|
||||||
|
|
||||||
friend class Buff;
|
friend class Buff;
|
||||||
friend class AddInventoryBuff;
|
friend class AddInventoryBuff;
|
||||||
friend class BePullBuff;
|
friend class BePullBuff;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user