fix: Fixes NPC acquire on being attacked (#2334)
This commit is contained in:
parent
0b8dcdfeaf
commit
7fe9712593
1 changed files with 1 additions and 1 deletions
|
|
@ -798,7 +798,7 @@ public abstract partial class BaseAI
|
||||||
|| Mobile.GetEthicAllegiance(m) == BaseCreature.Allegiance.Enemy;
|
|| Mobile.GetEthicAllegiance(m) == BaseCreature.Allegiance.Enemy;
|
||||||
|
|
||||||
// Valid if FightMode is Evil and the target's karma is negative
|
// Valid if FightMode is Evil and the target's karma is negative
|
||||||
return !valid && acqType != FightMode.Evil || (bc?.GetMaster()?.Karma ?? m.Karma) >= 0;
|
return !valid && (acqType != FightMode.Evil || (bc?.GetMaster()?.Karma ?? m.Karma) >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool IsHostile(Mobile from) => Mobile.Combatant == from || from.Combatant == Mobile || IsAggressor(from) || IsAggressed(from);
|
private bool IsHostile(Mobile from) => Mobile.Combatant == from || from.Combatant == Mobile || IsAggressor(from) || IsAggressed(from);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue