diff options
author | Machiavelli <none@none> | 2010-12-18 12:27:40 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2010-12-18 12:27:40 +0100 |
commit | 57132e35b8c334b855c130187c970d42bb6e9ec5 (patch) | |
tree | 52dae240e31a47d3358208b3eb1089dee040839c /src | |
parent | 785d5a94a6b69010f1c442ebac645257d63fa830 (diff) |
Core/Spells: Fix spells 59915 and 59906 / Discerning Eye of the Beast and Swift Hand of Justice (Heirloom trinkets)
Fixes issue #2435
Fixes issue #2529
--HG--
branch : trunk
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index f8be6b1fa8d..39a64c1065d 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -8035,6 +8035,21 @@ bool Unit::HandleAuraProc(Unit * pVictim, uint32 damage, Aura * triggeredByAura, RemoveAuraFromStack(dummySpell->Id); *handled = true; break; + // Discerning Eye of the Beast + case 59915: + { + CastSpell(this, 59914, true); // 59914 already has correct basepoints in DBC, no need for custom bp + *handled = true; + break; + } + // Swift Hand of Justice + case 59906: + { + int32 bp0 = CalculatePctN(GetMaxHealth(), SpellMgr::CalculateSpellEffectAmount(dummySpell, 0)); + CastCustomSpell(this, 59913, &bp0, NULL, NULL, true); + *handled = true; + break; + } } break; case SPELLFAMILY_PALADIN: |