diff options
author | megamage <none@none> | 2009-07-31 10:36:29 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-31 10:36:29 +0800 |
commit | c26d5560ea446e2aca2ecfbddc08adf6e168fa7b (patch) | |
tree | 5bf961bf2591a6a4548b290647af8ee34047f27f /src/game/Unit.cpp | |
parent | 2bddcc4303060a42e88a0478005c3c0368e3569a (diff) |
[8253] Some spell proc fixes. Author: Den
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c72187df8f3..7489341338e 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7052,6 +7052,7 @@ bool Unit::HandleObsModEnergyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* SpellEntry const* triggerEntry = sSpellStore.LookupEntry(triggered_spell_id); + // Try handle unknown trigger spells if(!triggerEntry) { sLog.outError("Unit::HandleObsModEnergyAuraProc: Spell %u have not existed triggered spell %u",dummySpell->Id,triggered_spell_id); @@ -7877,6 +7878,17 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig basepoints0 = GetCreateMana() * 0.20f; break; } + // Maelstrom Weapon + case 53817: + { + // have rank dependent proc chance, ignore too often cases + // PPM = 2.5 * (rank of talent), + uint32 rank = spellmgr.GetSpellRank(auraSpellInfo->Id); + // 5 rank -> 100% 4 rank -> 80% and etc from full rate + if(!roll_chance_i(20*rank)) + return false; + break; + } // Brain Freeze case 57761: { |