Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

MortalBody
MP: 0 HP: 50 Item: None Amount: N/A Duration: 300 Skill Type: Change
Delay: 1000 Cast Invis: Yes Ignores CM: No 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
Receiving Damage:

if (hasSkillEffect(MORTAL_BODY) && getId() != attacker.getId()) {
	int rnd = _random.nextInt(100) + 1;
	if (damage > 0 && rnd <= 23) {
		if (attacker instanceof L1PcInstance) {
			L1PcInstance attackPc = (L1PcInstance) attacker;
			attackPc.sendAndBroadcast(new S_DoActionGFX(attackPc.getId(), ActionCodes.ACTION_Damage));
			attackPc.receiveDamage(this, 30, false);
		} else if (attacker instanceof L1NpcInstance) {
			L1NpcInstance attackNpc = (L1NpcInstance) attacker;
			attackNpc.broadcastPacket(new S_DoActionGFX(attackNpc.getId(), ActionCodes.ACTION_Damage));
			attackNpc.receiveDamage(this, 30);
		}
	}
}