Disable summoning when spawn protected.
This commit is contained in:
parent
fe0577b69b
commit
78dacf5dfe
@ -41,7 +41,7 @@ public class CanSummonCubicSkillCondition implements ISkillCondition
|
||||
}
|
||||
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player.inObserverMode() || player.isMounted())
|
||||
if (player.inObserverMode() || player.isMounted() || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonMultiSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class CanSummonPetSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class CanSummonSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonCubicSkillCondition implements ISkillCondition
|
||||
}
|
||||
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player.inObserverMode() || player.isMounted())
|
||||
if (player.inObserverMode() || player.isMounted() || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonMultiSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class CanSummonPetSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class CanSummonSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonCubicSkillCondition implements ISkillCondition
|
||||
}
|
||||
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player.inObserverMode() || player.isMounted())
|
||||
if (player.inObserverMode() || player.isMounted() || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonMultiSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class CanSummonPetSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class CanSummonSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonCubicSkillCondition implements ISkillCondition
|
||||
}
|
||||
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player.inObserverMode() || player.isMounted())
|
||||
if (player.inObserverMode() || player.isMounted() || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonMultiSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class CanSummonPetSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class CanSummonSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonCubicSkillCondition implements ISkillCondition
|
||||
}
|
||||
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player.inObserverMode() || player.isMounted())
|
||||
if (player.inObserverMode() || player.isMounted() || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonMultiSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class CanSummonPetSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class CanSummonSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonCubicSkillCondition implements ISkillCondition
|
||||
}
|
||||
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player.inObserverMode() || player.isMounted())
|
||||
if (player.inObserverMode() || player.isMounted() || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonMultiSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class CanSummonPetSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class CanSummonSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class ConditionPlayerCanSummon extends Condition
|
||||
public boolean testImpl(L2Character effector, L2Character effected, Skill skill, L2Item item)
|
||||
{
|
||||
final L2PcInstance player = effector.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonCubicSkillCondition implements ISkillCondition
|
||||
}
|
||||
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player.inObserverMode() || player.isMounted())
|
||||
if (player.inObserverMode() || player.isMounted() || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonMultiSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class CanSummonPetSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class CanSummonSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonCubicSkillCondition implements ISkillCondition
|
||||
}
|
||||
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player.inObserverMode() || player.isMounted())
|
||||
if (player.inObserverMode() || player.isMounted() || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonMultiSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class CanSummonPetSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class CanSummonSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonCubicSkillCondition implements ISkillCondition
|
||||
}
|
||||
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player.inObserverMode() || player.isMounted())
|
||||
if (player.inObserverMode() || player.isMounted() || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonMultiSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class CanSummonPetSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class CanSummonSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonCubicSkillCondition implements ISkillCondition
|
||||
}
|
||||
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player.inObserverMode() || player.isMounted())
|
||||
if (player.inObserverMode() || player.isMounted() || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ public class CanSummonMultiSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class CanSummonPetSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ public class CanSummonSkillCondition implements ISkillCondition
|
||||
public boolean canUse(L2Character caster, Skill skill, L2Object target)
|
||||
{
|
||||
final L2PcInstance player = caster.getActingPlayer();
|
||||
if (player == null)
|
||||
if ((player == null) || player.isSpawnProtected() || player.isTeleportProtected())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user