Added safe zone protection for flame

This commit is contained in:
phobia 2016-02-03 10:39:21 +11:00
parent 59e564cdc6
commit 0e0582a1a7
2 changed files with 3 additions and 2 deletions

View File

@ -263,7 +263,7 @@ public class ClansGame extends MiniPlugin
{
// Cancel
event.SetCancelled("Clans Ally");
// Inform
if (damager != null)
{
@ -538,7 +538,7 @@ public class ClansGame extends MiniPlugin
ClanInfo clan = _clans.getClanUtility().getOwner(event.getEntity().getLocation());
if (clan == null) return;
if (_clans.getWarManager().isBeingInvaded(clan))
{
// Allow because of invasion

View File

@ -30,6 +30,7 @@ public abstract class AttackAttribute extends ItemAttribute
@Override
public void onAttack(CustomDamageEvent event)
{
if(event.GetCancellers().contains("Safe Zone")) return;
_attackCount++;
System.out.println("Attack count " + _attackCount + " - " + _attackLimit);
if (_attackCount >= _attackLimit)