fix: Prevents recursion in BaseCreature.DoHarmful() (#2202)

This commit is contained in:
Bohica 2025-07-22 16:01:56 -07:00 committed by GitHub
parent 8a118170e7
commit 173037ae77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 7 deletions

View file

@ -8286,7 +8286,7 @@ public partial class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPro
Region.OnDidHarmful(this, target);
target.Region.OnGotHarmful(this, target);
if (!indirect)
if (!indirect && !ChangingCombatant)
{
Combatant = target;
}