fix(Core/Spell): Reset insignia spell target when it is deleted. (#21437)

This commit is contained in:
Anton Popovichenko 2025-02-14 21:58:30 +01:00 committed by GitHub
parent 0273a9f08d
commit 2982b64430
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5586,6 +5586,10 @@ void Spell::EffectSkinPlayerCorpse(SpellEffIndex /*effIndex*/)
return;
unitTarget->ToPlayer()->RemovedInsignia(m_caster->ToPlayer());
// We have a corpse object as the target.
// This target was deleted in RemovedInsignia() -> ConvertCorpseToBones().
m_targets.RemoveObjectTarget();
}
void Spell::EffectStealBeneficialBuff(SpellEffIndex effIndex)