OnCreatureSee for non attackables is triggered at World.

This commit is contained in:
MobiusDevelopment 2021-06-23 15:00:31 +00:00
parent e0d8b453a3
commit bd3dc1a34f
22 changed files with 44 additions and 22 deletions

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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();
}