Lineage Justice
Spells & Skills
Lookup and validate skills and spells.
|
ElementalFallDown
|
MP:
|
10
|
HP:
|
0
|
Item:
|
None
|
Amount:
|
N/A
|
Duration:
|
64
|
Skill Type:
|
Probability
|
Target:
|
buff
|
Delay:
|
100
|
Cast Invis:
|
No
|
Ignores CM:
|
No
|
Element:
|
None
|
Range:
|
10
|
Area:
|
N/A
|
Lawful:
|
0
|
Dmg Value:
|
0.0
|
Dmg Dice:
|
0
|
Dice Count:
|
0
|
Prob Value:
|
33
|
Prob Dice:
|
30
|
Prob Max:
|
N/A
|
Threat:
|
100
|
Add Effect:
private static final int ELEMENTAL = -50;
@Override
public void addEffect(L1Character user, L1Character target,
int durationSeconds) {
if (!(user instanceof L1PcInstance)) {
return;
}
L1PcInstance player = (L1PcInstance) user;
int attr = player.getElfAttr();
if (!addElemental(target, attr, ELEMENTAL)) {
player.sendPackets(new S_ServerMessage(L1MessageId.NOTHING_HAPPENED));
return;
}
target.setAddAttrKind(attr);
}
Remove Effect:
private static final int ELEMENTAL = -50;
@Override
public void removeEffect(L1Character target) {
addElemental(target, target.getAddAttrKind(), -ELEMENTAL);
target.setAddAttrKind(0);
if (target instanceof L1PcInstance) {
L1PcInstance pc = (L1PcInstance) target;
pc.sendPackets(new S_OwnCharAttrDef(pc));
}
}