From 5b1e8ef6ff333412d23448684954581af39f0e2e Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 5 Aug 2009 16:39:09 -0500 Subject: [PATCH] [8309] Fixed paladin judgement selection code in some places. Author: KAPATEJIb --HG-- branch : trunk --- src/game/SpellEffects.cpp | 6 +++--- src/game/SpellMgr.h | 3 ++- src/game/Unit.cpp | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 9b414ed9f6..db5cb899f8 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5359,8 +5359,8 @@ void Spell::EffectScriptEffect(uint32 effIndex) } case SPELLFAMILY_PALADIN: { - // Judgement - if (m_spellInfo->SpellFamilyFlags[0] & 0x800000 || m_spellInfo->SpellFamilyFlags[2] & 0x8) + // Judgement (seal trigger) + if (m_spellInfo->Category == SPELLCATEGORY_JUDGEMENT) { if(!unitTarget || !unitTarget->isAlive()) return; @@ -5370,12 +5370,12 @@ void Spell::EffectScriptEffect(uint32 effIndex) // Judgement self add switch switch (m_spellInfo->Id) { - case 41467: break; // Judgement case 53407: spellId1 = 20184; break; // Judgement of Justice case 20271: // Judgement of Light case 57774: spellId1 = 20185; break; // Judgement of Light case 53408: spellId1 = 20186; break; // Judgement of Wisdom default: + sLog.outError("Unsupported Judgement (seal trigger) spell (Id: %u) in Spell::EffectScriptEffect",m_spellInfo->Id); return; } // all seals have aura dummy in 2 effect diff --git a/src/game/SpellMgr.h b/src/game/SpellMgr.h index c85431256a..0aae9fc43a 100644 --- a/src/game/SpellMgr.h +++ b/src/game/SpellMgr.h @@ -44,7 +44,8 @@ struct SpellModifier; enum SpellCategories { SPELLCATEGORY_HEALTH_MANA_POTIONS = 4, - SPELLCATEGORY_DEVOUR_MAGIC = 12 + SPELLCATEGORY_DEVOUR_MAGIC = 12, + SPELLCATEGORY_JUDGEMENT = 1210, // Judgement (seal trigger) }; enum SpellDisableTypes diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index fae807a5a6..794a3e7bcd 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -6409,8 +6409,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger triggered_spell_id = 40471; chance = 15.0f; } - // Judgement - else if( procSpell->SpellFamilyFlags[0] & 0x800000 ) + // Judgement (any) + else if (GetSpellSpecific(procSpell->Id)==SPELL_JUDGEMENT) { triggered_spell_id = 40472; chance = 50.0f;