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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user