Custom event team prohibitions.

Contributed by Trance.
This commit is contained in:
MobiusDevelopment
2020-09-24 00:03:50 +00:00
parent e84129002b
commit 929082db90
60 changed files with 555 additions and 0 deletions

View File

@@ -78,6 +78,12 @@ public class NotFriend implements IAffectObjectHandler
return false;
}
// Events.
if (player.isOnCustomEvent() && (player.getTeam() == target.getTeam()))
{
return false;
}
// Arena.
if (creature.isInsideZone(ZoneId.PVP) && target.isInsideZone(ZoneId.PVP))
{

View File

@@ -78,6 +78,12 @@ public class NotFriendPc implements IAffectObjectHandler
return false;
}
// Events.
if (player.isOnCustomEvent() && (player.getTeam() == target.getTeam()))
{
return false;
}
// Arena.
if (creature.isInsideZone(ZoneId.PVP) && target.isInsideZone(ZoneId.PVP))
{