Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

Pollute Water
MP: 20 HP: 0 Item: 40319 Amount: 1 Duration: 192 Skill Type: Probability
Delay: 1000 Cast Invis: No Ignores CM: No Element: Water Range: 3 Area: N/A
Dmg Value: 0.0 Dmg Dice: 0 Dice Count: 0 Prob Value: 33 Prob Dice: 50 Prob Max: 90
L1SkillUse Execution:

if (_skill.getType() == L1Skill.TYPE_HEAL) {
	dmg = -1 * _magic.calcHealing(_skillId);
	if (cha.hasSkillEffect(WATER_LIFE)) {
		dmg *= 2;
		cha.killSkillEffectTimer(WATER_LIFE);
		if (cha instanceof L1PcInstance) {
			L1PcInstance pc = (L1PcInstance) cha;
			pc.sendPackets(new S_SkillIconWaterLife());
		}
	}
	if (cha.hasSkillEffect(POLLUTE_WATER)) {
		dmg /= 2;
	}
	if (cha.hasSkillEffect(FAFURION_REDUCE_HEAL)) { 
		dmg /= 2;
		if (cha instanceof L1PcInstance) {
			if (_player != null && _player.isInvisble()) {
				_player.delInvis();
			}
			if (cha instanceof L1SummonInstance || cha instanceof L1PetInstance) {
				final L1NpcInstance npc = (L1NpcInstance) cha;
				npc.broadcastPacket(new S_SkillSound(cha.getId(), 7782));
			}
		}
	}
}