*Fix exorcism target check and crit chance calculation

*Do not apply spelldmg bonuses to conflagrate multiple times.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-06-26 17:16:32 +02:00
1 parent c3516ad8f3
commit 63a936b0b7
3 files changed
+14 -3

No files matched your search

+8
View File
@@ -9629,6 +9629,14 @@ bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolM
crit_chance+=aura->GetAmount();
break;
}
// Exorcism - "If the target is Undead or Demon, it will always critically hit"
else if(spellProto->SpellFamilyFlags[1]&0x2)
{
if(pVictim->GetCreatureType() == CREATURE_TYPE_DEMON
|| pVictim->GetCreatureType() == CREATURE_TYPE_UNDEAD)
return true;
break;
}
break;
case SPELLFAMILY_SHAMAN:
// Lava Burst