Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

EarthBind
MP: 18 HP: 0 Item: 40319 Amount: 2 Duration: 8 Skill Type: Probability
Delay: 0 Cast Invis: No Ignores CM: No Element: Earth Range: 6 Area: N/A
Dmg Value: 0.0 Dmg Dice: 0 Dice Count: 0 Prob Value: 33 Prob Dice: 30 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.sendPackets(new S_Poison(pc.getId(), 2));
		pc.broadcastPacket(new S_Poison(pc.getId(), 2));
		pc.sendPackets(new S_Paralysis(S_Paralysis.TYPE_FREEZE,
				true));
	} else if (target instanceof L1MonsterInstance
			|| target instanceof L1SummonInstance
			|| target instanceof L1PetInstance) {
		L1NpcInstance npc = (L1NpcInstance) target;
		npc.broadcastPacket(new S_Poison(npc.getId(), 2));
		npc.setParalyzed(true);
		npc.setParalysisTime(durationSeconds * 1000);
	}
	
}
Remove Effect:

@Override
public void removeEffect(L1Character target) {
	
	if (target instanceof L1PcInstance) {
		L1PcInstance pc = (L1PcInstance) target;
		pc.sendPackets(new S_Poison(pc.getId(), 0));
		pc.broadcastPacket(new S_Poison(pc.getId(), 0));
		pc.sendPackets(new S_Paralysis(S_Paralysis.TYPE_FREEZE, false));
	} else if (target instanceof L1MonsterInstance
			|| target instanceof L1SummonInstance
			|| target instanceof L1PetInstance) {
		L1NpcInstance npc = (L1NpcInstance) target;
		npc.broadcastPacket(new S_Poison(npc.getId(), 0));
		npc.setParalyzed(false);
	}
	
}