Lineage Justice

Spells & Skills

Lookup and validate skills and spells.

ShockStun
MP: 15 HP: 0 Item: None Amount: N/A Duration: 4 Skill Type: Probability
Delay: 8000 Cast Invis: No Ignores CM: Yes Element: None Range: 1 Area: N/A
Dmg Value: 0.0 Dmg Dice: 0 Dice Count: 0 Prob Value: 52 Prob Dice: 20 Prob Max: 90
L1SkillUse Execution:

if (_skillId == SHOCK_STUN) {
	//Removed the weird calculations from Zelgo to allow for 
	//more variation in the stun times... 
	RandomGenerator _random = RandomGeneratorFactory
			.newRandom();
	int stunTime = (_random.nextInt(21) + 10) * 100;
	_shockStunDuration = stunTime;
					
	L1EffectSpawn.getInstance().spawnEffect(81162,
			_shockStunDuration, cha.getX(), cha.getY(),
			cha.getMapId());
	if (cha instanceof L1PcInstance) {
		L1PcInstance pc = (L1PcInstance) cha;
		pc.sendPackets(new S_Paralysis(S_Paralysis.TYPE_STUN,
				true));
	} else if (cha instanceof L1MonsterInstance
			|| cha instanceof L1SummonInstance
			|| cha instanceof L1PetInstance) {
		L1NpcInstance npc = (L1NpcInstance) cha;
		npc.setParalyzed(true);
		npc.setParalysisTime(_shockStunDuration);
	}
}