Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

Shield
MP: 8 HP: 0 Item: None Amount: N/A Duration: 1800 Skill Type: Change
Delay: 10 Cast Invis: Yes Ignores CM: Yes Element: None Range: N/A Area: N/A
Dmg Value: 0.0 Dmg Dice: 0 Dice Count: 0 Prob Value: 0 Prob Dice: 0 Prob Max: N/A
Add Effect:

private static final int AC = 2;

@Override
public void addEffect(L1Character user, L1Character target,
		int durationSeconds) {
	target.addAc(-AC);
	if (target instanceof L1PcInstance) {
		L1PcInstance pc = (L1PcInstance) target;
		pc.sendPackets(new S_SkillIconShield(5, durationSeconds));
	}
}
Remove Effect:

private static final int AC = 2;

@Override
public void removeEffect(L1Character target) {
	target.addAc(AC);
	if (target instanceof L1PcInstance) {
		L1PcInstance pc = (L1PcInstance) target;
		pc.sendPackets(new S_SkillIconShield(5, 0));
	}
}