Fixed Guards attacking monsters configuration.

Contributed by G-hamsteR.
This commit is contained in:
MobiusDevelopment 2020-09-16 12:11:46 +00:00
parent 2723644d8c
commit a7c5a0e4c5
2 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,10 @@ public class GuardKnownList extends AttackableKnownList
@Override
public boolean addKnownObject(WorldObject object, Creature dropper)
{
if (!Config.ALLOW_GUARDS && (object instanceof MonsterInstance))
{
return false;
}
if (!super.addKnownObject(object, dropper))
{
return false;

View File

@ -41,6 +41,10 @@ public class GuardKnownList extends AttackableKnownList
@Override
public boolean addKnownObject(WorldObject object, Creature dropper)
{
if (!Config.ALLOW_GUARDS && (object instanceof MonsterInstance))
{
return false;
}
if (!super.addKnownObject(object, dropper))
{
return false;