Wind Guardian shit
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / ability / Lightning.as
blob363d9e39e71d2645b73aba2351ecf74583b7a18c
1 package org.sevenchan.dongs.ability
3 import org.sevenchan.dongs.*;
4 import org.sevenchan.dongs.creature.Ala;
5 import org.sevenchan.dongs.creature.Player;
6 import org.sevenchan.dongs.screens.InfoScreen;
7 /**
8 * ...
9 * @author N3X15
11 public class Lightning extends Ability
14 public function Lightning()
16 this.manaCost = 50;
17 this.description = "Utterly rape something for the cost of 100 Mana.";
18 this.label = "Lightning";
19 this.name = "Lightning";
22 override public function activate(activator:Creature, rapee:Creature):Boolean
24 if(activator is Ala)
25 InfoScreen.push("<h2>Lightning</h2><p>The Ala roars and a bolt of lightning streaks out of the sky and hits you. One moment you're staring incredulously at the massive teeth of the Ala, the next you're flat on your ass and your scalp is on fire.</p>");
26 if (activator is Player) {
27 if (activator.mana < 100) {
28 InfoScreen.push("<p>You do not have enough mana.</p>");
29 return false;
31 InfoScreen.push("<h2>Lightning</h2><p>You raise your hands to the sky, and dark clouds immediately form, darkening the blaster landscape. The clouds flicker with internal electrical discharges, and then, suddenly, a bolt slams into your opponent's head, causing significant damage. The shockwave caused by the hot air expanding suddenly causes even more.</p>");
32 activator.mana = 0;
34 rapee.HP -= rapee.HP / Math.max(1, rapee.level - activator.level);
35 return true;