diff options
author | megamage <none@none> | 2008-11-26 15:23:26 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-11-26 15:23:26 -0600 |
commit | 9366ec3308691bc0a64da7313d1c57e9398e1bc5 (patch) | |
tree | 07d6f77f48135674055ac31864e554e3c5eb424b /src/game/GridNotifiers.h | |
parent | da6c516fdf16a59ddd5dea862a50e8191966cc16 (diff) |
*Try to fix the bug that creatures cast buff on players.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.h')
-rw-r--r-- | src/game/GridNotifiers.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |