mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Combat Policy: Tactical Completed
- Added Normal / Reverse Button Tactical targets the strongest threat, while Reverse targets the weakest ones
This commit is contained in:
1 parent
d8f320f79c
commit
b17d95edde
4 files changed
+19
-3
No files matched your search
@@ -572,7 +572,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
}
|
||||
break;
|
||||
case Tactical:
|
||||
if (attackingEntity != getAttackTarget() && combatHandler.shouldSwitchTactically(getAttackTarget(), attackingEntity)) {
|
||||
if (attackingEntity != getAttackTarget() && combatHandler.shouldSwitchTactically(getAttackTarget(), attackingEntity, ai.tacticalChance > 50)) {
|
||||
setAttackTarget(attackingEntity);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user