ElementalFallDown |
MP: | 10 | HP: | 0 | Item: | None | Amount: | N/A | Duration: | 64 | Skill Type: | Probability |
Delay: | 100 | Cast Invis: | No | Ignores CM: | No | Element: | None | Range: | 10 | Area: | N/A |
Dmg Value: | 0.0 | Dmg Dice: | 0 | Dice Count: | 0 | Prob Value: | 33 | Prob Dice: | 30 | Prob Max: | N/A |
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);
}
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));
}
}