Index: java/net/sf/l2j/gameserver/model/zone/L2ZoneType.java
===================================================================
--- java/net/sf/l2j/gameserver/model/zone/L2ZoneType.java (revision 1283)
+++ java/net/sf/l2j/gameserver/model/zone/L2ZoneType.java (working copy)
@@ -246,29 +246,32 @@
public void revalidateInZone(L2Character character)
{
- // If the character cant be affected by this zone return
- if (_checkAffected)
+ if (!(character instanceof L2PcInstance))
{
- if (!isAffected(character)) return;
- }
+ // If the character cant be affected by this zone return
+ if (_checkAffected)
+ {
+ if (!isAffected(character)) return;
+ }
- // If the object is inside the zone...
- if (_zone.isInsideZone(character.getX(), character.getY(), character.getZ()))
- {
- // Was the character not yet inside this zone?
- if (!_characterList.contains(character))
+ // If the object is inside the zone...
+ if (_zone.isInsideZone(character.getX(), character.getY(), character.getZ()))
{
- _characterList.add(character);
- onEnter(character);
+ // Was the character not yet inside this zone?
+ if (!_characterList.contains(character))
+ {
+ _characterList.add(character);
+ onEnter(character);
+ }
}
- }
- else
- {
- // Was the character inside this zone?
- if (_characterList.contains(character))
+ else
{
- _characterList.remove(character);
- onExit(character);
+ // Was the character inside this zone?
+ if (_characterList.contains(character))
+ {
+ _characterList.remove(character);
+ onExit(character);
+ }
}
}
}