mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
Fix priest 47540 and ranks
Also stop chanelling mage AM/priest 47540 if target die Set DK cast 52212 as triggered from aura. Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
8b270d67a8
commit
cb66f99fc2
3 changed files with 53 additions and 3 deletions
|
|
@ -1352,6 +1352,30 @@ void Spell::EffectDummy(uint32 i)
|
|||
}
|
||||
break;
|
||||
case SPELLFAMILY_PRIEST:
|
||||
// Penance
|
||||
if (m_spellInfo->SpellFamilyFlags & 0x0080000000000000LL)
|
||||
{
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
int hurt = 0;
|
||||
int heal = 0;
|
||||
switch(m_spellInfo->Id)
|
||||
{
|
||||
case 47540: hurt = 47758; heal = 47757; break;
|
||||
case 53005: hurt = 53001; heal = 52986; break;
|
||||
case 53006: hurt = 53002; heal = 52987; break;
|
||||
case 53007: hurt = 53003; heal = 52988; break;
|
||||
default:
|
||||
sLog.outError("Spell::EffectDummy: Spell %u Penance need set correct heal/damage spell", m_spellInfo->Id);
|
||||
return;
|
||||
}
|
||||
if (m_caster->IsFriendlyTo(unitTarget))
|
||||
m_caster->CastSpell(unitTarget, heal, true, 0);
|
||||
else
|
||||
m_caster->CastSpell(unitTarget, hurt, true, 0);
|
||||
return;
|
||||
}
|
||||
switch(m_spellInfo->Id )
|
||||
{
|
||||
case 28598: // Touch of Weakness triggered spell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue