Core/Units: Allow self inflicted damage to bypass CREATURE_STATIC_FLAG_UNKILLABLE

Port From (https://github.com/TrinityCore/TrinityCore/commit/53ac8d3ef5621f7137092b7aeeebf42730059181)
This commit is contained in:
hondacrx
2024-02-04 13:37:19 -05:00
parent 7825d38b91
commit 44705dcc0d
+1 -1
View File
@@ -2678,7 +2678,7 @@ namespace Game.Entities
duel_hasEnded = true;
}
else if (victim.IsCreature() && damageTaken >= health && victim.ToCreature().HasFlag(CreatureStaticFlags.Unkillable))
else if (victim.IsCreature() && victim != attacker && damageTaken >= health && victim.ToCreature().HasFlag(CreatureStaticFlags.Unkillable))
{
damageTaken = health - 1;