This commit is contained in:
aozhiwei 2023-03-15 14:39:12 +08:00
parent f28e31e3d7
commit 0a84c71c24
2 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,8 @@
#include "creature.h"
#include "room.h"
#include "trigger.h"
#include "collision.h"
#include "human.h"
#include "mt/Buff.h"
#include "mt/Skill.h"
@ -22,6 +24,10 @@ void HideBuff::Activate()
(int event, const a8::Args* args) mutable
{
if (a8::TIMER_EXEC_EVENT == event) {
Human* hum = nullptr;
if (Collision::CheckCC(owner, owner->GetRadius(),
hum, alert_range)) {
}
}
},
&xtimer_attacher

View File

@ -9,4 +9,7 @@ class HideBuff : public Buff
virtual void Activate() override;
virtual void Deactivate() override;
private:
std::map<int, std::tuple<CreatureWeakPtr, long long, int>> alert_buff_hash_;
};