Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

AdvanceSpirit
MP: 20 HP: 0 Item: None Amount: N/A Duration: 1200 Skill Type: Change
Delay: 10 Cast Invis: Yes Ignores CM: Yes Element: None Range: 20 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:

@Override
public void addEffect(L1Character user, L1Character target,
		int durationSeconds) {
	
	if (target instanceof L1PcInstance) {
		L1PcInstance pc = (L1PcInstance) target;
		pc.setAdvenHp(pc.getBaseMaxHp() / 5);
		pc.setAdvenMp(pc.getBaseMaxMp() / 5);
		pc.addMaxHp(pc.getAdvenHp());
		pc.addMaxMp(pc.getAdvenMp());
		pc.sendPackets(new S_HPUpdate(pc.getCurrentHp(), pc
				.getMaxHp()));
		if (pc.isInParty()) {
			pc.getParty().updateMiniHP(pc);
		}
		pc.sendPackets(new S_MPUpdate(pc.getCurrentMp(), pc
				.getMaxMp()));
	}
	
}
Add Effect:

@Override
public void removeEffect(L1Character target) {
	
	if (target instanceof L1PcInstance) {
		L1PcInstance pc = (L1PcInstance) target;
		pc.addMaxHp(-pc.getAdvenHp());
		pc.addMaxMp(-pc.getAdvenMp());
		pc.setAdvenHp(0);
		pc.setAdvenMp(0);
		pc.sendPackets(new S_HPUpdate(pc.getCurrentHp(), pc.getMaxHp()));
		if (pc.isInParty()) {
			pc.getParty().updateMiniHP(pc);
		}
		pc.sendPackets(new S_MPUpdate(pc.getCurrentMp(), pc.getMaxMp()));
	}

}