Core/Spells: resolved a cherrypick error

This commit is contained in:
Ovahlord
2022-02-22 21:51:21 +01:00
parent c307969695
commit f641bcb2d1

View File

@@ -2610,6 +2610,11 @@ void Spell::DoAllEffectOnTarget(TargetInfo* target)
else
procAttacker |= PROC_FLAG_DEAL_HARMFUL_ABILITY;
}
else
if (positive)
procAttacker |= PROC_FLAG_DEAL_HELPFUL_SPELL;
else
procAttacker |= PROC_FLAG_DEAL_HARMFUL_SPELL;
break;
default:
break;
@@ -2634,6 +2639,13 @@ void Spell::DoAllEffectOnTarget(TargetInfo* target)
else
procVictim |= PROC_FLAG_TAKE_HARMFUL_ABILITY;
}
else
{
if (positive)
procVictim |= PROC_FLAG_TAKE_HELPFUL_SPELL;
else
procVictim |= PROC_FLAG_TAKE_HARMFUL_SPELL;
}
break;
default:
break;