mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8309] Fixed paladin judgement selection code in some places.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
3c47e6117a
commit
fc66d2729b
4 changed files with 8 additions and 7 deletions
|
|
@ -5222,8 +5222,8 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
||||||
}
|
}
|
||||||
case SPELLFAMILY_PALADIN:
|
case SPELLFAMILY_PALADIN:
|
||||||
{
|
{
|
||||||
// Judgement
|
// Judgement (seal trigger)
|
||||||
if (m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000800000))
|
if (m_spellInfo->Category == SPELLCATEGORY_JUDGEMENT)
|
||||||
{
|
{
|
||||||
if(!unitTarget || !unitTarget->isAlive())
|
if(!unitTarget || !unitTarget->isAlive())
|
||||||
return;
|
return;
|
||||||
|
|
@ -5233,12 +5233,12 @@ void Spell::EffectScriptEffect(uint32 effIndex)
|
||||||
// Judgement self add switch
|
// Judgement self add switch
|
||||||
switch (m_spellInfo->Id)
|
switch (m_spellInfo->Id)
|
||||||
{
|
{
|
||||||
case 41467: break; // Judgement
|
|
||||||
case 53407: spellId1 = 20184; break; // Judgement of Justice
|
case 53407: spellId1 = 20184; break; // Judgement of Justice
|
||||||
case 20271: // Judgement of Light
|
case 20271: // Judgement of Light
|
||||||
case 57774: spellId1 = 20185; break; // Judgement of Light
|
case 57774: spellId1 = 20185; break; // Judgement of Light
|
||||||
case 53408: spellId1 = 20186; break; // Judgement of Wisdom
|
case 53408: spellId1 = 20186; break; // Judgement of Wisdom
|
||||||
default:
|
default:
|
||||||
|
sLog.outError("Unsupported Judgement (seal trigger) spell (Id: %u) in Spell::EffectScriptEffect",m_spellInfo->Id)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// all seals have aura dummy in 2 effect
|
// all seals have aura dummy in 2 effect
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,8 @@ struct SpellModifier;
|
||||||
enum SpellCategories
|
enum SpellCategories
|
||||||
{
|
{
|
||||||
SPELLCATEGORY_HEALTH_MANA_POTIONS = 4,
|
SPELLCATEGORY_HEALTH_MANA_POTIONS = 4,
|
||||||
SPELLCATEGORY_DEVOUR_MAGIC = 12
|
SPELLCATEGORY_DEVOUR_MAGIC = 12,
|
||||||
|
SPELLCATEGORY_JUDGEMENT = 1210, // Judgement (seal trigger)
|
||||||
};
|
};
|
||||||
|
|
||||||
enum SpellFamilyNames
|
enum SpellFamilyNames
|
||||||
|
|
|
||||||
|
|
@ -5703,8 +5703,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||||
triggered_spell_id = 40471;
|
triggered_spell_id = 40471;
|
||||||
chance = 15.0f;
|
chance = 15.0f;
|
||||||
}
|
}
|
||||||
// Judgement
|
// Judgement (any)
|
||||||
else if (procSpell->SpellFamilyFlags & UI64LIT(0x0000000000800000))
|
else if (GetSpellSpecific(procSpell->Id)==SPELL_JUDGEMENT)
|
||||||
{
|
{
|
||||||
triggered_spell_id = 40472;
|
triggered_spell_id = 40472;
|
||||||
chance = 50.0f;
|
chance = 50.0f;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8308"
|
#define REVISION_NR "8309"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue