Jump to content

Recommended Posts

Posted
Index: java/net/sf/l2j/gameserver/model/L2Character.java

===================================================================

--- java/net/sf/l2j/gameserver/model/L2Character.java (revision 1225)

+++ java/net/sf/l2j/gameserver/model/L2Character.java (working copy)

@@ -51,13 +51,17 @@

import net.sf.l2j.gameserver.model.L2Skill.SkillType;

import net.sf.l2j.gameserver.model.actor.instance.L2ArtefactInstance;

import net.sf.l2j.gameserver.model.actor.instance.L2BoatInstance;

+import net.sf.l2j.gameserver.model.actor.instance.L2ControlTowerInstance;

import net.sf.l2j.gameserver.model.actor.instance.L2DoorInstance;

+import net.sf.l2j.gameserver.model.actor.instance.L2GuardInstance;

import net.sf.l2j.gameserver.model.actor.instance.L2MonsterInstance;

+import net.sf.l2j.gameserver.model.actor.instance.L2SummonInstance;

import net.sf.l2j.gameserver.model.actor.instance.L2NpcInstance;

import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

import net.sf.l2j.gameserver.model.actor.instance.L2RiftInvaderInstance;

import net.sf.l2j.gameserver.model.actor.instance.L2PetInstance;

import net.sf.l2j.gameserver.model.actor.instance.L2PlayableInstance;

+import net.sf.l2j.gameserver.model.actor.instance.L2SiegeGuardInstance;

import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.SkillDat;

import net.sf.l2j.gameserver.model.actor.knownlist.CharKnownList;

import net.sf.l2j.gameserver.model.actor.knownlist.ObjectKnownList.KnownListAsynchronousUpdateTask;

@@ -251,6 +255,11 @@

_calculators = new Calculator[stats.NUM_STATS];

Formulas.getInstance().addFuncsToNewCharacter(this);

}

+ if (!(this instanceof L2PcInstance) && !(this instanceof L2MonsterInstance) &&

+ !(this instanceof L2GuardInstance) && !(this instanceof L2SiegeGuardInstance) &&

+ !(this instanceof L2ControlTowerInstance) && !(this instanceof L2SummonInstance) &&

+ !(this instanceof L2DoorInstance))

+ setIsInvul(true);

}

 

protected void initCharStatusUpdateValues()

@@ -4613,7 +4622,7 @@

public boolean isInsidePeaceZone(L2Object attacker, L2Object target)

{

if (target == null) return false;

- if (target instanceof L2MonsterInstance) return false;

+ if (target instanceof L2NpcInstance) return false;

if (attacker instanceof L2MonsterInstance) return false;

if (Config.ALT_GAME_KARMA_PLAYER_CAN_BE_KILLED_IN_PEACEZONE)

{

 

Credits : L2jForum

  • 11 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...