mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
[svn] Fix cloak of shadows. Dispel type should be based on SPELL_DAMAGE_CLASS_MAGIC.
Fix: SPELL_DAMAGE_CLASS_NONE type spells should never miss. --HG-- branch : trunk
This commit is contained in:
@@ -1773,8 +1773,8 @@ void Spell::EffectTriggerSpell(uint32 i)
|
||||
// remove all harmful spells on you...
|
||||
if( // ignore positive and passive auras
|
||||
!iter->second->IsPositive() && !iter->second->IsPassive() &&
|
||||
// ignore physical auras
|
||||
(GetSpellSchoolMask(iter->second->GetSpellProto()) & SPELL_SCHOOL_MASK_NORMAL)==0 &&
|
||||
// only affect magic spells
|
||||
iter->second->GetSpellProto()->DmgClass == SPELL_DAMAGE_CLASS_MAGIC &&
|
||||
// ignore immunity persistent spells
|
||||
!( iter->second->GetSpellProto()->AttributesEx & 0x10000 ) )
|
||||
{
|
||||
|
||||
@@ -2905,6 +2905,7 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
|
||||
// return MeleeSpellHitResult(pVictim, spell);
|
||||
return SPELL_MISS_NONE;
|
||||
case SPELL_DAMAGE_CLASS_NONE:
|
||||
return SPELL_MISS_NONE;
|
||||
case SPELL_DAMAGE_CLASS_MAGIC:
|
||||
return MagicSpellHitResult(pVictim, spell);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user