Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

WeakElemental
MP: 8 HP: 0 Item: None Amount: N/A Duration: 0 Skill Type: Other
Delay: 10 Cast Invis: No Ignores CM: No 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
L1SkillUse Execution:

if (_skillId == WEAK_ELEMENTAL) {
	if (cha instanceof L1MonsterInstance) {
		L1Npc npcTemp = ((L1MonsterInstance) cha)
				.getNpcTemplate();
		int weakAttr = npcTemp.getWeakAttr();
		if ((weakAttr & Element.Earth) == Element.Earth) {
			cha.broadcastPacket(new S_SkillSound(cha
					.getId(), 2169));
		}
		if ((weakAttr & Element.Fire) == Element.Fire) {
			cha.broadcastPacket(new S_SkillSound(cha
					.getId(), 2167));
		}
		if ((weakAttr & Element.Water) == Element.Water) {
			cha.broadcastPacket(new S_SkillSound(cha
					.getId(), 2166));
		}
		if ((weakAttr & Element.Wind) == Element.Wind) {
			cha.broadcastPacket(new S_SkillSound(cha
					.getId(), 2168));
		}
	}
}