Disable summoning when spawn protected.
This commit is contained in:
		| @@ -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; | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDev
					MobiusDev