*Some clean up and add debug info to find the reason of crash.
--HG-- branch : trunk
This commit is contained in:
1 parent
390257b2f6
commit
21af4cf832
11 files changed
+88
-58
No files matched your search
+1
-1
@@ -6154,7 +6154,7 @@ bool Spell::CheckTarget(Unit* target, uint32 eff)
|
||||
case SPELL_AURA_MOD_CHARM:
|
||||
case SPELL_AURA_MOD_POSSESS_PET:
|
||||
case SPELL_AURA_AOE_CHARM:
|
||||
if(target->GetTypeId() == TYPEID_UNIT && ((Creature*)target)->IsVehicle())
|
||||
if(target->GetTypeId() == TYPEID_UNIT && target->IsVehicle())
|
||||
return false;
|
||||
if(target->GetCharmerGUID())
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user