fix: Prevents recursion in BaseCreature.DoHarmful() (#2202)
This commit is contained in:
parent
8a118170e7
commit
173037ae77
2 changed files with 4 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue