Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

ManaDrain
MP: 1 HP: 50 Item: None Amount: N/A Duration: 0 Skill Type: Probability
Delay: 500 Cast Invis: No Ignores CM: No Element: None Range: 4 Area: N/A
Dmg Value: 0.0 Dmg Dice: 0 Dice Count: 0 Prob Value: 0 Prob Dice: 12 Prob Max: 99
L1Skill Execution:

if (_skillId == MANA_DRAIN) {
	RandomGenerator random = RandomGeneratorFactory
			.getSharedRandom();
	int chance = random.nextInt(10) + 5;
	drainMana = chance + (_user.getInt() / 2);
	if (cha.getCurrentMp() < drainMana) {
		drainMana = cha.getCurrentMp();
	}
}