L2JMobius

High Five Small fixes on Terittory War

Invoke · 1 · 5981

Offline Invoke

  • Heir
  • **
    • Posts: 18
Hey guys i have noticed that when you are holding a ward and trying to exit the siege zone you are still somehow hold the ward, so here is a small "fix" and some skill restrictions also during the siege.

Inside com.l2jmobius.gameserver.mode.zone.type.L2SiegeZone.java
find public void onExit and add this if inside

Code: [Select]
// If you leave the siege zone, ward returns to the castle.
if ((character instanceof L2PcInstance) && ((L2PcInstance) character).isCombatFlagEquipped() && TerritoryWarManager.getInstance().isTWInProgress())
{
return;
}

Also another small fix during TW or Siege and still holding a ward or smth to not let players use specific skills (you can add more ofc)

Inside com.l2jmobius.gameserver.network.clientpackets.RequestMagicSkillUse.java
find public void run() and add this

Code: [Select]
if (activeChar.isInSiege() && activeChar.isCombatFlagEquipped())
{
// Block Hide, Dash , Shadow Step, Blink and Warp while holding a Ward
// TODO more skills
if ((skill.getId() == 922) || (skill.getId() == 970) || (skill.getId() == 628) || (skill.getId() == 1448) || (skill.getId() == 821))
{
activeChar.sendPacket(ActionFailed.STATIC_PACKET);
return;

}
}