Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

Phantasm
MP: 30 HP: 25 Item: None Amount: N/A Duration: 5 Skill Type: Curse
Delay: 3000 Cast Invis: No Ignores CM: No Element: None Range: 5 Area: N/A
Dmg Value: 0.0 Dmg Dice: 0 Dice Count: 0 Prob Value: 30 Prob Dice: 0 Prob Max: 50
L1SkillUse Execution:

if (_skillId == PHANTASM) {
	int time = _skill.getBuffDuration() * 1000;
	if (cha instanceof L1PcInstance) {
		L1PcInstance targetPc = (L1PcInstance) cha;
		targetPc.setSkillEffect(FOG_OF_SLEEPING, time);
		targetPc.sendPackets(new S_Paralysis(
				S_Paralysis.TYPE_SLEEP, true));
	} else if (cha instanceof L1MonsterInstance
			|| cha instanceof L1SummonInstance
			|| cha instanceof L1PetInstance) {
		L1NpcInstance npc = (L1NpcInstance) cha;
		npc.setSkillEffect(FOG_OF_SLEEPING, time);
		npc.setSleeped(true);
	}
}