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:
parent
9038e3a2ff
commit
2677fc5fac
@ -2387,7 +2387,7 @@ int32 Entity::CheckWards(Entity* attacker, int32 damage, int8 damage_type) {
|
||||
}
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user