Lineage Justice
Spells & Skills
Lookup and validate skills and spells.
|
FogOfSleeping
|
MP:
|
40
|
HP:
|
0
|
Item:
|
40318
|
Amount:
|
1
|
Duration:
|
32
|
Skill Type:
|
Curse
|
Delay:
|
1500
|
Cast Invis:
|
No
|
Ignores CM:
|
No
|
Element:
|
Water
|
Range:
|
10
|
Area:
|
3
|
Dmg Value:
|
0.0
|
Dmg Dice:
|
0
|
Dice Count:
|
0
|
Prob Value:
|
0
|
Prob Dice:
|
8
|
Prob Max:
|
95
|
Add Effect:
@Override
public void addEffect(L1Character user, L1Character target,
int durationSeconds) {
target.setSleeped(true);
if (target instanceof L1PcInstance) {
L1PcInstance pc = (L1PcInstance) target;
pc.sendPackets(new S_Paralysis(S_Paralysis.TYPE_SLEEP, true));
}
}
Remove Effect:
@Override
public void removeEffect(L1Character target) {
target.setSleeped(false);
if (target instanceof L1PcInstance) {
L1PcInstance pc = (L1PcInstance) target;
pc.sendPackets(new S_Paralysis(S_Paralysis.TYPE_SLEEP, false));
pc.sendPackets(new S_OwnCharStatus(pc));
}
}