*Fix improved shadowform.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-04-25 20:36:31 +02:00
parent 373914f1f9
commit ec4031be35
3 changed files with 17 additions and 4 deletions
+3 -4
View File
@@ -1220,11 +1220,10 @@ bool SpellMgr::IsSpellProcEventCanTriggeredBy(SpellProcEventEntry const* spellPr
else // For spells need check school/spell family/family mask
{
// Item cast can trigger only with spells with spellfamily
if (procExtra & PROC_EX_INTERNAL_ITEM_CAST && procSpell->SpellFamilyName)
if (procExtra & PROC_EX_INTERNAL_ITEM_CAST)
{
if (procSpell->SpellFamilyName == spellProcEvent->spellFamilyName)
return true;
return false;
if (!spellProcEvent->SpellFamilyName)
return false;
}
// Check (if set) for school
if(spellProcEvent->schoolMask && (spellProcEvent->schoolMask & procSpell->SchoolMask) == 0)
+8
View File
@@ -5512,6 +5512,14 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
triggered_spell_id = 56160;
break;
}
// Improved Shadowform
case 47570:
case 47569:
{
RemoveAurasByTypeWithDispel(SPELL_AURA_MOD_ROOT);
RemoveAurasByTypeWithDispel(SPELL_AURA_MOD_DECREASE_SPEED);
break;
}
// Psychic Horror
case 47571:
{