diff options
author | John Holiver <none@none> | 2010-08-31 15:01:04 -0300 |
---|---|---|
committer | John Holiver <none@none> | 2010-08-31 15:01:04 -0300 |
commit | 258398ed3078f3bd506bdf56e0cbead754770bb6 (patch) | |
tree | db86fbc96aa2e50f8252045bd1685ef1085867d7 /src | |
parent | e32ece52ea801127941fd352980a2e7d7958a9c6 (diff) |
Fixes Druid T10 Balance 4P bonus.
Fixes DK T10 Melee 4P bonus.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 1c4c19a77eb..cc2023b79bf 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -6651,6 +6651,20 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger triggered_spell_id = 32747; break; } + // Item - Druid T10 Balance 4P Bonus + case 70723: + { + // Wrath & Starfire + if ((procSpell->SpellFamilyFlags[0] & 0x5) && (procEx & PROC_EX_CRITICAL_HIT)) + { + triggered_spell_id = 71023; + SpellEntry const* triggeredSpell = sSpellStore.LookupEntry(triggered_spell_id); + if (!triggeredSpell) + return false; + basepoints0 = int32(triggerAmount * damage / 100 / (GetSpellMaxDuration(triggeredSpell) / triggeredSpell->EffectAmplitude[0])); + } + break; + } } // Eclipse if (dummySpell->SpellIconID == 2856 && GetTypeId() == TYPEID_PLAYER) @@ -7802,6 +7816,16 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger } } } + // Item - Death Knight T10 Melee 4P Bonus + if (dummySpell->Id == 70656) + { + if (!this->ToPlayer()) + return false; + + for (uint32 i = 0; i < MAX_RUNES; ++i) + if (this->ToPlayer()->GetRuneCooldown(i) == 0) + return false; + } break; } case SPELLFAMILY_POTION: |