mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
*Some clean up and add debug info to find the reason of crash.
--HG-- branch : trunk
This commit is contained in:
@@ -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