Passive champion fix.

Contributed by flanagak.
This commit is contained in:
MobiusDev 2017-12-08 21:07:27 +00:00
parent 588b104d60
commit 2d833aef38
5 changed files with 25 additions and 25 deletions

View File

@ -187,17 +187,17 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
return false;
}
if (me.isChampion() && Config.CHAMPION_PASSIVE)
{
return false;
}
if (!me.isAggressive())
{
return false;
}
}
if (me.isChampion() && Config.CHAMPION_PASSIVE)
{
return false;
}
return target.isAutoAttackable(me) && GeoEngine.getInstance().canSeeTarget(me, target);
}

View File

@ -187,17 +187,17 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
return false;
}
if (me.isChampion() && Config.CHAMPION_PASSIVE)
{
return false;
}
if (!me.isAggressive())
{
return false;
}
}
if (me.isChampion() && Config.CHAMPION_PASSIVE)
{
return false;
}
return target.isAutoAttackable(me) && GeoEngine.getInstance().canSeeTarget(me, target);
}

View File

@ -187,17 +187,17 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
return false;
}
if (me.isChampion() && Config.CHAMPION_PASSIVE)
{
return false;
}
if (!me.isAggressive())
{
return false;
}
}
if (me.isChampion() && Config.CHAMPION_PASSIVE)
{
return false;
}
return target.isAutoAttackable(me) && GeoEngine.getInstance().canSeeTarget(me, target);
}

View File

@ -187,17 +187,17 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
return false;
}
if (me.isChampion() && Config.CHAMPION_PASSIVE)
{
return false;
}
if (!me.isAggressive())
{
return false;
}
}
if (me.isChampion() && Config.CHAMPION_PASSIVE)
{
return false;
}
return target.isAutoAttackable(me) && GeoEngine.getInstance().canSeeTarget(me, target);
}

View File

@ -187,17 +187,17 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
return false;
}
if (me.isChampion() && Config.CHAMPION_PASSIVE)
{
return false;
}
if (!me.isAggressive())
{
return false;
}
}
if (me.isChampion() && Config.CHAMPION_PASSIVE)
{
return false;
}
return target.isAutoAttackable(me) && GeoEngine.getInstance().canSeeTarget(me, target);
}