aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-03-12 23:40:55 +0100
committerQAston <none@none>2009-03-12 23:40:55 +0100
commit4b82035006eef10efa5794da305488b838f16cd3 (patch)
tree27e0203637a5935dc35b80ca7d34493009ade46d /src
parent1fbfc6da645058a6da3073dafde0e6bca621e31c (diff)
*Fix traps. Thanks to megamage for help.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/GridNotifiers.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/GridNotifiers.h b/src/game/GridNotifiers.h
index 8e427366f1a..ba487dec55f 100644
--- a/src/game/GridNotifiers.h
+++ b/src/game/GridNotifiers.h
@@ -600,8 +600,12 @@ namespace Trinity
AnyUnfriendlyNoTotemUnitInObjectRangeCheck(WorldObject const* obj, Unit const* funit, float range) : i_obj(obj), i_funit(funit), i_range(range) {}
bool operator()(Unit* u)
{
- if(u->isAlive() && i_obj->IsWithinDistInMap(u, i_range) && !i_funit->IsFriendlyTo(u) && !((Creature*)u)->isTotem())
+ if(u->isAlive() && i_obj->IsWithinDistInMap(u, i_range) && !i_funit->IsFriendlyTo(u))
+ {
+ if (u->GetTypeId()==TYPEID_UNIT && !((Creature*)u)->isTotem())
+ return false;
return true;
+ }
else
return false;
}