1package com.osroyale.game.action.impl;
3import com.osroyale.content.skill.impl.hunter.net.impl.Butterfly;
4import com.osroyale.content.skill.impl.hunter.net.impl.Impling;
5import com.osroyale.game.task.Task;
6import com.osroyale.game.world.entity.mob.npc.Npc;
8import java.util.Optional;
38public final class HunterRespawnTask
extends Task {
41 public HunterRespawnTask(
Npc npc) {
48 Optional<Impling> impling =
Impling.forId(npc.id);
49 Optional<Butterfly> butterfly =
Butterfly.forId(npc.id);
51 if (impling.isPresent()) {
53 }
else butterfly.ifPresent(butterfly1 ->
setDelay(butterfly1.delay));
56 npc.setVisible(
false);
synchronized final void cancel()
Task(boolean instant, int delay)