*Allow creature to cast on self when enterevademode. This fixes the bug that adding castspell in reset function does not work.
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -2835,7 +2835,7 @@ SpellMissInfo Unit::MagicSpellHitResult(Unit *pVictim, SpellEntry const *spell)
|
||||
SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool CanReflect)
|
||||
{
|
||||
// Return evade for units in evade mode
|
||||
if (pVictim->GetTypeId()==TYPEID_UNIT && ((Creature*)pVictim)->IsInEvadeMode())
|
||||
if (pVictim->GetTypeId()==TYPEID_UNIT && ((Creature*)pVictim)->IsInEvadeMode() && this != pVictim)
|
||||
return SPELL_MISS_EVADE;
|
||||
|
||||
// Check for immune
|
||||
|
||||
Reference in New Issue
Block a user