Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

Light
MP: 4 HP: 0 Item: None Amount: N/A Duration: 3600 Skill Type: Change
Delay: 10 Cast Invis: Yes Ignores CM: Yes Element: Ray 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
L1Character Light:

private int calcLightSize() {
	int lightSize = 0;
	if (this instanceof L1NpcInstance) {
		L1NpcInstance npc = (L1NpcInstance) this;
		lightSize = npc.getNpcTemplate().getLightSize();
	}
	if (hasSkillEffect(L1SkillId.LIGHT)) {
		lightSize = 14;
	}

	for (L1ItemInstance item : getInventory().getItems()) {
		if (item.getItem().getType2() == 0 && item.getItem().getType() == 2) {
			if (item.isNowLighting()) {
				int itemLightSize = item.getItem().getLightRange();
				lightSize = Math.max(lightSize, itemLightSize);
			}
		}
	}
	if (lightSize > 14) {
		lightSize = 14;
	}
	return lightSize;
}