Prevent quest monster champion spawns.

Contributed by SkOdD.
This commit is contained in:
MobiusDev
2018-08-07 19:43:16 +00:00
parent f5a13187e4
commit 68785eaa8a
8 changed files with 8 additions and 8 deletions

View File

@ -1465,7 +1465,7 @@ public class L2Attackable extends L2Npc
if (Config.CHAMPION_ENABLE)
{
// Set champion on next spawn
if (isMonster() && !getTemplate().isUndying() && !_isRaid && !_isRaidMinion && (Config.CHAMPION_FREQUENCY > 0) && (getLevel() >= Config.CHAMP_MIN_LVL) && (getLevel() <= Config.CHAMP_MAX_LVL) && (Config.CHAMPION_ENABLE_IN_INSTANCES || (getInstanceId() == 0)))
if (isMonster() && !isQuestMonster() && !getTemplate().isUndying() && !_isRaid && !_isRaidMinion && (Config.CHAMPION_FREQUENCY > 0) && (getLevel() >= Config.CHAMP_MIN_LVL) && (getLevel() <= Config.CHAMP_MAX_LVL) && (Config.CHAMPION_ENABLE_IN_INSTANCES || (getInstanceId() == 0)))
{
if (Rnd.get(100) < Config.CHAMPION_FREQUENCY)
{