Should not see invisible creatures.

This commit is contained in:
MobiusDevelopment 2021-06-23 21:43:49 +00:00
parent 49e7f31d04
commit 71dd707e53
22 changed files with 22 additions and 22 deletions

View File

@ -5457,7 +5457,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5457,7 +5457,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5457,7 +5457,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5457,7 +5457,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5466,7 +5466,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5466,7 +5466,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5466,7 +5466,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5465,7 +5465,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5465,7 +5465,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5465,7 +5465,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -6790,7 +6790,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -6792,7 +6792,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5456,7 +5456,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5456,7 +5456,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5465,7 +5465,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5490,7 +5490,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5490,7 +5490,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5489,7 +5489,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5456,7 +5456,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5499,7 +5499,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5506,7 +5506,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}

View File

@ -5506,7 +5506,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
World.getInstance().forEachVisibleObjectInRange(this, Creature.class, _seenCreatureRange, creature ->
{
if (_seenCreatures.add(creature))
if (!creature.isInvisible() && _seenCreatures.add(creature))
{
EventDispatcher.getInstance().notifyEventAsync(new OnCreatureSee(this, creature), this);
}