mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
Merge pull request #766 from Gargarensis/Unbound_Plague
Fix Unbound Plague, credit to Nefertumm
This commit is contained in:
@@ -173,15 +173,15 @@ public:
|
||||
bool operator()(WorldObject* object) const
|
||||
{
|
||||
if (!object)
|
||||
return true;
|
||||
return false;
|
||||
if (Player* p = object->ToPlayer())
|
||||
{
|
||||
if (p == _source->GetVictim() || p->GetExactDist(_source) >= 45.0f)
|
||||
return true;
|
||||
return false;
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
private:
|
||||
Creature const* _source;
|
||||
|
||||
Reference in New Issue
Block a user