*Target is never valid on MAPID_INVALID.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-30 10:46:14 -07:00
parent f4f19ac255
commit 1134fd99f0
+2
View File
@@ -6350,6 +6350,8 @@ bool SpellEvent::IsDeletable() const
bool Spell::IsValidSingleTargetEffect(Unit const* target, Targets type) const bool Spell::IsValidSingleTargetEffect(Unit const* target, Targets type) const
{ {
if (target->GetMapId() == MAPID_INVALID)
return false;
switch (type) switch (type)
{ {
case TARGET_UNIT_TARGET_ENEMY: case TARGET_UNIT_TARGET_ENEMY: