Skip to content
Snippets Groups Projects
Commit e1c86d5f authored by Nos's avatar Nos
Browse files

BETA: DP-Part for [L6396].

parent a680a999
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ public class Slaves extends AbstractNpcAI
}
slave.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MOVE_TO);
DecayTaskManager.getInstance().addDecayTask(slave);
DecayTaskManager.getInstance().add(slave);
}
}
}
......
......@@ -189,7 +189,7 @@ public class AdminRes implements IAdminCommandHandler
}
else
{
DecayTaskManager.getInstance().cancelDecayTask(targetChar);
DecayTaskManager.getInstance().cancel(targetChar);
}
targetChar.doRevive();
......
......@@ -68,7 +68,7 @@ public final class Resurrection extends AbstractEffect
}
else
{
DecayTaskManager.getInstance().cancelDecayTask(target);
DecayTaskManager.getInstance().cancel(target);
target.doRevive(Formulas.calculateSkillResurrectRestorePercent(_power, activeChar));
}
}
......
......@@ -49,7 +49,7 @@ public class CorpseMob implements ITargetTypeHandler
return EMPTY_TARGET_LIST;
}
if (skill.hasEffectType(L2EffectType.HP_DRAIN) && ((L2Attackable) target).isOldCorpse(activeChar.getActingPlayer(), (Config.DEFAULT_CORPSE_TIME / 2), true))
if (skill.hasEffectType(L2EffectType.HP_DRAIN) && ((L2Attackable) target).isOldCorpse(activeChar.getActingPlayer(), Config.CORPSE_CONSUME_SKILL_ALLOWED_TIME_BEFORE_DECAY, true))
{
return EMPTY_TARGET_LIST;
}
......
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