Skip to content
Snippets Groups Projects
Commit 90761c57 authored by Adry85's avatar Adry85 Committed by Zoey76
Browse files

Added Tanta Lizardman Summoner AI.

Reported by: Maneco2
parent ea7b9a17
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,8 @@ public final class PlainsOfLizardman extends AbstractNpcAI ...@@ -62,6 +62,8 @@ public final class PlainsOfLizardman extends AbstractNpcAI
private static final SkillHolder RAINBOW_FROG_SKILL = new SkillHolder(6429); private static final SkillHolder RAINBOW_FROG_SKILL = new SkillHolder(6429);
private static final SkillHolder STICKY_MUSHROOM_SKILL = new SkillHolder(6428); private static final SkillHolder STICKY_MUSHROOM_SKILL = new SkillHolder(6428);
private static final SkillHolder ENERGY_PLANT_SKILL = new SkillHolder(6430); private static final SkillHolder ENERGY_PLANT_SKILL = new SkillHolder(6430);
// Misc
private static final double HP_PERCENTAGE = 0.60;
// Buffs // Buffs
private static final SkillHolder[] BUFFS = private static final SkillHolder[] BUFFS =
{ {
...@@ -122,9 +124,12 @@ public final class PlainsOfLizardman extends AbstractNpcAI ...@@ -122,9 +124,12 @@ public final class PlainsOfLizardman extends AbstractNpcAI
switch (npc.getId()) switch (npc.getId())
{ {
case TANTA_SUMMONER: case TANTA_SUMMONER:
if (!npc.isAffectedBySkill(DEMOTIVATION_HEX.getSkillId())) if ((npc.getCurrentHp() < (npc.getMaxHp() * HP_PERCENTAGE)) && npc.isScriptValue(0))
{ {
npc.setScriptValue(1);
npc.doCast(DEMOTIVATION_HEX); npc.doCast(DEMOTIVATION_HEX);
addAttackDesire(addSpawn(TANTA_SCOUT, npc.getX(), npc.getY(), npc.getZ(), 0, false, 0, false), attacker);
addAttackDesire(addSpawn(TANTA_SCOUT, npc.getX(), npc.getY(), npc.getZ(), 0, false, 0, false), attacker);
} }
break; break;
case RAINBOW_FROG: case RAINBOW_FROG:
......
...@@ -30,6 +30,7 @@ import ai.npc.AbstractNpcAI; ...@@ -30,6 +30,7 @@ import ai.npc.AbstractNpcAI;
/** /**
* Raid Boss Cancel AI. * Raid Boss Cancel AI.
* @author Adry_85 * @author Adry_85
* @since 2.6.0.0
*/ */
public final class RaidBossCancel extends AbstractNpcAI public final class RaidBossCancel extends AbstractNpcAI
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment