From 57132e35b8c334b855c130187c970d42bb6e9ec5 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sat, 18 Dec 2010 12:27:40 +0100 Subject: [PATCH] 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 --- src/server/game/Entities/Unit/Unit.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index f8be6b1fa8..39a64c1065 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: