mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
* Fix some warlock talent work
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
6c02f00a93
commit
7c8d69e2b0
1 changed files with 6 additions and 4 deletions
|
|
@ -7257,12 +7257,14 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
|
||||||
if ((*i)->GetModifier()->m_miscvalue == SPELLMOD_CHANCE_OF_SUCCESS && (*i)->GetSpellProto()->SpellIconID == 113)
|
if ((*i)->GetModifier()->m_miscvalue == SPELLMOD_CHANCE_OF_SUCCESS && (*i)->GetSpellProto()->SpellIconID == 113)
|
||||||
{
|
{
|
||||||
int32 value2 = CalculateSpellDamage((*i)->GetSpellProto(),2,(*i)->GetSpellProto()->EffectBasePoints[2],this);
|
int32 value2 = CalculateSpellDamage((*i)->GetSpellProto(),2,(*i)->GetSpellProto()->EffectBasePoints[2],this);
|
||||||
basepoints0 = value2 * GetMaxPower(POWER_MANA) / 100;
|
// Drain Soul
|
||||||
|
CastCustomSpell(this, 18371, &basepoints0, NULL, NULL, true, castItem, triggeredByAura);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( basepoints0 == 0 )
|
// Not remove charge (aura removed on death in any cases)
|
||||||
|
// Need for correct work Drain Soul SPELL_AURA_CHANNEL_DEATH_ITEM aura
|
||||||
return false;
|
return false;
|
||||||
trigger_spell_id = 18371;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue