Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

CounterMagic
MP: 20 HP: 0 Item: 40318 Amount: 1 Duration: 16 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
L1SkillUse Execution:

private boolean isUseCounterMagic(L1Character cha) {
	if (!_skill.ignoresCounterMagic() && cha.hasSkillEffect(COUNTER_MAGIC)) {
		cha.removeSkillEffect(COUNTER_MAGIC);
		int castgfx = SkillTable.getInstance().findBySkillId(COUNTER_MAGIC)
				.getCastGfx();
		cha.broadcastPacket(new S_SkillSound(cha.getId(), castgfx));
		if (cha instanceof L1PcInstance) {
			L1PcInstance pc = (L1PcInstance) cha;
			pc.sendPackets(new S_SkillSound(pc.getId(), castgfx));
		}
		return true;
	}
	return false;
}