mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
Edited src/game/SpellEffects.cpp via GitHub
This commit is contained in:
parent
a59d1f06cc
commit
5880014d93
1 changed files with 4 additions and 6 deletions
|
|
@ -7312,13 +7312,11 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
}
|
||||
case 64456: // Feral Essence Application Removal
|
||||
{
|
||||
if (unitTarget && unitTarget->HasAura(m_spellInfo->CalculateSimpleValue(eff_idx)))
|
||||
{
|
||||
if (SpellAuraHolder* pEssenceHolder = unitTarget->GetSpellAuraHolder(m_spellInfo->CalculateSimpleValue(eff_idx)))
|
||||
if (pEssenceHolder->ModStackAmount(-1))
|
||||
unitTarget->RemoveAurasDueToSpell(m_spellInfo->CalculateSimpleValue(eff_idx));
|
||||
}
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
uint32 spellId = m_spellInfo->CalculateSimpleValue(eff_idx);
|
||||
unitTarget->RemoveAuraHolderFromStack(spellId);
|
||||
return;
|
||||
}
|
||||
case 66477: // Bountiful Feast
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue