fix(Core/Spells): Fix Lay on Hands healing bypassing Cyclone (#20552)
* fix(Core/Spells): Fix Lay on Hands healing bypassing Cyclone * and mana as well
This commit is contained in:
parent
e2020e0886
commit
7746287ee1
1 changed files with 12 additions and 0 deletions
|
|
@ -1885,6 +1885,12 @@ void Spell::EffectEnergize(SpellEffIndex effIndex)
|
|||
if (!unitTarget->IsAlive())
|
||||
return;
|
||||
|
||||
if (unitTarget->HasUnitState(UNIT_STATE_ISOLATED))
|
||||
{
|
||||
m_caster->SendSpellDamageImmune(unitTarget, GetSpellInfo()->Id);
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_spellInfo->Effects[effIndex].MiscValue < 0 || m_spellInfo->Effects[effIndex].MiscValue >= int8(MAX_POWERS))
|
||||
return;
|
||||
|
||||
|
|
@ -3679,6 +3685,12 @@ void Spell::EffectHealMaxHealth(SpellEffIndex /*effIndex*/)
|
|||
if (!unitTarget || !unitTarget->IsAlive())
|
||||
return;
|
||||
|
||||
if (unitTarget->HasUnitState(UNIT_STATE_ISOLATED))
|
||||
{
|
||||
m_caster->SendSpellDamageImmune(unitTarget, GetSpellInfo()->Id);
|
||||
return;
|
||||
}
|
||||
|
||||
int32 addhealth = 0;
|
||||
|
||||
// damage == 0 - heal for caster max health
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue