forked from MagicBane/Server
PVE flag
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user