From ef4043436b8ede32562d5dac76dd0ac081408658 Mon Sep 17 00:00:00 2001 From: mik1893 Date: Sat, 18 Oct 2014 21:13:37 +0100 Subject: Core/Spells: Grounding Totem: - correctly magnet spells and dies - let missile spells fly on it and destroys all spells during the travel time of first one Thx @amsjunior1 Closes #13147 Fixes #5611 --- src/server/game/Spells/SpellInfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/server/game/Spells/SpellInfo.cpp') diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 5ef6acbcce1..2462c6a9ac4 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -1738,6 +1738,11 @@ bool SpellInfo::CheckTargetCreatureType(Unit const* target) const else return true; } + + // if target is magnet (i.e Grounding Totem) the check is skipped + if (target->IsMagnet()) + return true; + uint32 creatureType = target->GetCreatureTypeMask(); return !TargetCreatureType || !creatureType || (creatureType & TargetCreatureType); } -- cgit v1.2.3