Custom event team prohibitions.
Contributed by Trance.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user