This commit is contained in:
2025-03-08 06:19:36 -06:00
parent 54b8a1df19
commit 71735c73ff
3 changed files with 56 additions and 1 deletions
+10
View File
@@ -241,6 +241,16 @@ public enum CombatManager {
if (ac == null)
return;
if(ac.getObjectType().equals(GameObjectType.PlayerCharacter)){
PlayerCharacter pc = (PlayerCharacter)ac;
if(pc.isBoxed){
if(pc.combatTarget != null && pc.combatTarget.getObjectType().equals(GameObjectType.PlayerCharacter)) {
ChatManager.chatSystemInfo(pc, " You Are PvE Flagged: Cannot Attack Players.");
return;
}
}
}
// Attempt to eat null targets until we can clean
// up this unholy mess and refactor it into a thread.