Going to still check wards if the caster is not who we are currently checking wards on (eg. not self)

This commit is contained in:
Emagi 2025-06-12 15:15:25 -04:00
parent 9038e3a2ff
commit 2677fc5fac

View File

@ -2387,7 +2387,7 @@ int32 Entity::CheckWards(Entity* attacker, int32 damage, int8 damage_type) {
} }
if (attacker && spell->caster) if (attacker && spell->caster)
attacker->DamageSpawn(spell->caster, DAMAGE_PACKET_TYPE_SPELL_DAMAGE, damage_type, redirectDamage, redirectDamage, 0, 0, false, false, false, false, spell, true); attacker->DamageSpawn(spell->caster, DAMAGE_PACKET_TYPE_SPELL_DAMAGE, damage_type, redirectDamage, redirectDamage, 0, 0, false, false, false, false, spell, (spell->caster == this) ? true : false);
} }
bool shouldRemoveSpell = false; bool shouldRemoveSpell = false;