Invisible GM players should not be attackable.

This commit is contained in:
MobiusDevelopment
2022-12-18 07:38:27 +00:00
parent 28fa244022
commit e92b70c40a
29 changed files with 174 additions and 0 deletions

View File

@ -8377,6 +8377,12 @@ public class Player extends Playable
return false;
}
// Invisible GM players should not be attackable.
if (isInvisible() && isGM())
{
return false;
}
// Check if the attacker isn't the Player Pet
if ((attacker == this) || (attacker == _pet) || attacker.hasServitor(attacker.getObjectId()))
{