Invisible GM players should not be attackable.
This commit is contained in:
@ -8086,6 +8086,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()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user