Fixed Guards attacking monsters configuration.
Contributed by G-hamsteR.
This commit is contained in:
@@ -41,6 +41,10 @@ public class GuardKnownList extends AttackableKnownList
|
|||||||
@Override
|
@Override
|
||||||
public boolean addKnownObject(WorldObject object, Creature dropper)
|
public boolean addKnownObject(WorldObject object, Creature dropper)
|
||||||
{
|
{
|
||||||
|
if (!Config.ALLOW_GUARDS && (object instanceof MonsterInstance))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (!super.addKnownObject(object, dropper))
|
if (!super.addKnownObject(object, dropper))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@@ -41,6 +41,10 @@ public class GuardKnownList extends AttackableKnownList
|
|||||||
@Override
|
@Override
|
||||||
public boolean addKnownObject(WorldObject object, Creature dropper)
|
public boolean addKnownObject(WorldObject object, Creature dropper)
|
||||||
{
|
{
|
||||||
|
if (!Config.ALLOW_GUARDS && (object instanceof MonsterInstance))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (!super.addKnownObject(object, dropper))
|
if (!super.addKnownObject(object, dropper))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user