Skip to content
Snippets Groups Projects
Commit 8e6aef91 authored by Rumen Nikiforov's avatar Rumen Nikiforov
Browse files

BETA: Restrictions added in [8814] must apply only for admin_transform command

parent a159482a
No related branches found
No related tags found
No related merge requests found
......@@ -52,26 +52,8 @@ public class AdminPolymorph implements IAdminCommandHandler
return false;
}
if (activeChar.isTransformed() || activeChar.isInStance())
{
activeChar.sendPacket(SystemMessageId.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
return false;
}
if (activeChar.isInWater())
{
activeChar.sendPacket(SystemMessageId.YOU_CANNOT_POLYMORPH_INTO_THE_DESIRED_FORM_IN_WATER);
return false;
}
if (activeChar.isFlyingMounted() || activeChar.isMounted() || activeChar.isRidingStrider())
{
activeChar.sendPacket(SystemMessageId.YOU_CANNOT_POLYMORPH_WHILE_RIDING_A_PET);
return false;
}
if (command.startsWith("admin_untransform"))
{
{
L2Object obj = activeChar.getTarget();
if (obj instanceof L2Character)
{
......@@ -84,6 +66,24 @@ public class AdminPolymorph implements IAdminCommandHandler
}
else if (command.startsWith("admin_transform"))
{
if (activeChar.isTransformed() || activeChar.isInStance())
{
activeChar.sendPacket(SystemMessageId.YOU_ALREADY_POLYMORPHED_AND_CANNOT_POLYMORPH_AGAIN);
return false;
}
else if (activeChar.isInWater())
{
activeChar.sendPacket(SystemMessageId.YOU_CANNOT_POLYMORPH_INTO_THE_DESIRED_FORM_IN_WATER);
return false;
}
else if (activeChar.isFlyingMounted() || activeChar.isMounted() || activeChar.isRidingStrider())
{
activeChar.sendPacket(SystemMessageId.YOU_CANNOT_POLYMORPH_WHILE_RIDING_A_PET);
return false;
}
L2Object obj = activeChar.getTarget();
if (obj instanceof L2PcInstance)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment