Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

WaterLife
MP: 1 HP: 0 Item: 40319 Amount: 1 Duration: 64 Skill Type: Change
Delay: 100 Cast Invis: Yes Ignores CM: Yes Element: Water Range: 15 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 (_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));
			}
		}
	}
}