v2.3.1: amoked allies are now affected by aggression

This commit is contained in:
Evan Debenham
2024-01-21 14:48:03 -05:00
parent be38997c31
commit 7ad704c43b

View File

@@ -263,7 +263,7 @@ public abstract class Mob extends Char {
}
//if we are an alert enemy, auto-hunt a target that is affected by aggression, even another enemy
if (alignment == Alignment.ENEMY && state != PASSIVE && state != SLEEPING) {
if ((alignment == Alignment.ENEMY || buff(Amok.class) != null ) && state != PASSIVE && state != SLEEPING) {
if (enemy != null && enemy.buff(StoneOfAggression.Aggression.class) != null){
state = HUNTING;
return enemy;