diff options
author | QAston <none@none> | 2009-06-26 17:16:32 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-06-26 17:16:32 +0200 |
commit | 63a936b0b77baea933f2ab9116ef93487e13d701 (patch) | |
tree | 785528c15d07295d1d7aab3f4c8915030ff4c7cc /src/game/Unit.cpp | |
parent | c3516ad8f353dff84e7b60af3df98c17ccf373b0 (diff) |
*Fix exorcism target check and crit chance calculation
*Do not apply spelldmg bonuses to conflagrate multiple times.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index d606963f1a4..9a18ce02308 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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 |