switch(_stage2)
{
case 0:
if(actor_hp_precent < 85)
{
actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, InstantMove, 1, 500, 0));
ThreadPoolManager.getInstance().scheduleGeneral(new TeleportTask(actor), 500);
_stage2++;
}
break;
case 1:
if(actor_hp_precent < 50)
{
actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, InstantMove, 1, 500, 0));
ThreadPoolManager.getInstance().scheduleGeneral(new TeleportTask(actor), 500);
_stage2++;
}
break;
case 2:
if(actor_hp_precent < 25)
{
actor.broadcastPacketToOthers(new MagicSkillUse(actor, actor, InstantMove, 1, 500, 0));
ThreadPoolManager.getInstance().scheduleGeneral(new TeleportTask(actor), 500);
_stage2++;
}
break;
}