This commit is contained in:
aozhiwei 2023-10-14 13:52:34 +08:00
parent 4e29cd295f
commit c2bd6e9c6f
2 changed files with 3 additions and 3 deletions

View File

@ -246,12 +246,12 @@ bool HeroAgent::HasBuffEffect(int effect_id)
return owner_->HasBuffEffect(effect_id); return owner_->HasBuffEffect(effect_id);
} }
bool HeroAgent::IsNearGas(float range) bool HeroAgent::IsNearGas(float anti_range)
{ {
return Collision::InSquare return Collision::InSquare
(owner_->GetPos().ToGlmVec3(), (owner_->GetPos().ToGlmVec3(),
owner_->GetPos().ToGlmVec3(), owner_->GetPos().ToGlmVec3(),
range); anti_range);
} }
bool HeroAgent::MasterInRange(float range) bool HeroAgent::MasterInRange(float range)

View File

@ -51,7 +51,7 @@ public:
int DecV(int id, int val); int DecV(int id, int val);
bool HasBuffEffect(int effect_id); bool HasBuffEffect(int effect_id);
bool IsNearGas(float range); bool IsNearGas(float range);
bool MasterInRange(float range); bool MasterInRange(float anti_range);
bool HasFlag(int tag); bool HasFlag(int tag);
void SetFlag(int tag); void SetFlag(int tag);
void UnSetFlag(int tag); void UnSetFlag(int tag);