From 9366ec3308691bc0a64da7313d1c57e9398e1bc5 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 26 Nov 2008 15:23:26 -0600 Subject: *Try to fix the bug that creatures cast buff on players. --HG-- branch : trunk --- src/game/GridNotifiers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/GridNotifiers.h b/src/game/GridNotifiers.h index ac68db6ba1e..5dd863493a8 100644 --- a/src/game/GridNotifiers.h +++ b/src/game/GridNotifiers.h @@ -877,7 +877,7 @@ namespace Trinity FriendlyMissingBuffInRange(Unit const* obj, float range, uint32 spellid) : i_obj(obj), i_range(range), i_spell(spellid) {} bool operator()(Unit* u) { - if(u->isAlive() && u->isInCombat() && !i_obj->IsHostileTo(u) && i_obj->IsWithinDistInMap(u, i_range) && + if(u->isAlive() && u->isInCombat() && /*!i_obj->IsHostileTo(u)*/ i_obj->IsFriendlyTo(u) && i_obj->IsWithinDistInMap(u, i_range) && !(u->HasAura(i_spell, 0) || u->HasAura(i_spell, 1) || u->HasAura(i_spell, 2))) { return true; -- cgit v1.2.3