Config for disabling mounts on sieges.

This commit is contained in:
mobius
2015-01-02 14:33:23 +00:00
parent ead9206d06
commit 52afbcbf9c
4 changed files with 27 additions and 1 deletions

View File

@@ -4815,6 +4815,11 @@ public final class L2PcInstance extends L2Playable
public void transform(Transform transformation)
{
if (!Config.ALLOW_MOUNTS_DURING_SIEGE && transformation.isRiding() && isInsideZone(ZoneId.SIEGE))
{
return;
}
if (_transformation != null)
{
// You already polymorphed and cannot polymorph again.
@@ -6395,6 +6400,11 @@ public final class L2PcInstance extends L2Playable
public boolean mount(L2Summon pet)
{
if (!Config.ALLOW_MOUNTS_DURING_SIEGE && isInsideZone(ZoneId.SIEGE))
{
return false;
}
if (!disarmWeapons() || !disarmShield() || isTransformed())
{
return false;