OnCreatureSee for non attackables is triggered at World.
This commit is contained in:
parent
e0d8b453a3
commit
bd3dc1a34f
@ -1075,7 +1075,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1075,7 +1075,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1075,7 +1075,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1075,7 +1075,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1075,7 +1075,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1075,7 +1075,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1075,7 +1075,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1075,7 +1075,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1076,7 +1076,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1076,7 +1076,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1290,7 +1290,8 @@ public class Npc extends Creature
|
||||
WalkingManager.getInstance().onSpawn(this);
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1290,7 +1290,8 @@ public class Npc extends Creature
|
||||
WalkingManager.getInstance().onSpawn(this);
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1075,7 +1075,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1075,7 +1075,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1075,7 +1075,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1087,7 +1087,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1087,7 +1087,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1087,7 +1087,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1059,7 +1059,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1088,7 +1088,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1088,7 +1088,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
@ -1088,7 +1088,8 @@ public class Npc extends Creature
|
||||
setClanId(getCastle().getOwnerId());
|
||||
}
|
||||
|
||||
if (CREATURE_SEE_IDS.contains(getId()))
|
||||
if (isAttackable() // OnCreatureSee for non attackables is triggered at World.
|
||||
&& CREATURE_SEE_IDS.contains(getId()))
|
||||
{
|
||||
initSeenCreatures();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user