mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16: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
|
|
@ -689,6 +689,9 @@ void Spell::prepareDataForTriggerSystem()
|
|||
case SPELLFAMILY_WARLOCK: // For Hellfire Effect / Rain of Fire / Seed of Corruption triggers need do it
|
||||
if (m_spellInfo->SpellFamilyFlags & 0x0000800000000060LL) m_canTrigger = true;
|
||||
break;
|
||||
case SPELLFAMILY_PRIEST: // For Penance heal/damage triggers need do it
|
||||
if (m_spellInfo->SpellFamilyFlags & 0x0001800000000000LL) m_canTrigger = true;
|
||||
break;
|
||||
case SPELLFAMILY_HUNTER: // Hunter Explosive Trap Effect/Immolation Trap Effect/Frost Trap Aura/Snake Trap Effect
|
||||
if (m_spellInfo->SpellFamilyFlags & 0x0000200000000014LL) m_canTrigger = true;
|
||||
break;
|
||||
|
|
@ -2258,8 +2261,12 @@ void Spell::handle_immediate()
|
|||
// start channeling if applicable
|
||||
if(IsChanneledSpell(m_spellInfo))
|
||||
{
|
||||
m_spellState = SPELL_STATE_CASTING;
|
||||
SendChannelStart(GetSpellDuration(m_spellInfo));
|
||||
int32 duration = GetSpellDuration(m_spellInfo);
|
||||
if (duration)
|
||||
{
|
||||
m_spellState = SPELL_STATE_CASTING;
|
||||
SendChannelStart(duration);
|
||||
}
|
||||
}
|
||||
|
||||
// process immediate effects (items, ground, etc.) also initialize some variables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue