mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-02 10:33:46 +00:00
fix(Core/GameObjectScript): Environmental damage of burning game objects (#2432)
This commit is contained in:
@@ -1248,6 +1248,23 @@ namespace acore
|
||||
bool _disallowGM;
|
||||
};
|
||||
|
||||
class AnyPlayerExactPositionInGameObjectRangeCheck
|
||||
{
|
||||
public:
|
||||
AnyPlayerExactPositionInGameObjectRangeCheck(GameObject const* go, float range) : _go(go), _range(range) {}
|
||||
bool operator()(Player* u)
|
||||
{
|
||||
if (!_go->IsInRange(u->GetPositionX(), u->GetPositionY(), u->GetPositionZ(), _range))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private:
|
||||
GameObject const* _go;
|
||||
float _range;
|
||||
};
|
||||
|
||||
class NearestPlayerInObjectRangeCheck
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user