rendered paste bodyIndex: D:/projectl2j/L2_GameServer_It_1283/java/net/sf/l2j/gameserver/model/L2Character.java
===================================================================
--- D:/projectl2j/L2_GameServer_It_1283/java/net/sf/l2j/gameserver/model/L2Character.java (revision 1283)
+++ D:/projectl2j/L2_GameServer_It_1283/java/net/sf/l2j/gameserver/model/L2Character.java (working copy)
@@ -588,7 +588,7 @@
}
if (((L2PcInstance)this).isCursedWeaponEquiped() && ((L2PcInstance)target).getLevel()<=20){
- ((L2PcInstance)this).sendMessage("Cant attack a newbie player with Zarike");
+ ((L2PcInstance)this).sendMessage("Cant attack a newbie player with Zariche");
sendPacket(new ActionFailed());
return;
}
@@ -612,6 +612,12 @@
return;
}
+ if (target.isInsidePeaceZone((L2PcInstance)this))
+ {
+ getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
+ sendPacket(new ActionFailed());
+ return;
+ }
// GeoData Los Check here (or dz > 1000)
if (!GeoData.getInstance().canSeeTarget(this, target))
{