Disable summoning when spawn protected.

This commit is contained in:
MobiusDev
2019-02-05 11:09:39 +00:00
parent fe0577b69b
commit 78dacf5dfe
41 changed files with 41 additions and 41 deletions

View File

@ -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;
}