Guardian support and a refactor. Also damned.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / ability / Lightning.as
blobac6819181692a05c9cdffa770bd176f329eff7c0
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.description = "Because the attack damage algorithm is fucked.";
17 this.label = "Lightning";
18 this.name = "Lightning";
21 override public function activate(activator:Creature, rapee:Creature):Boolean
23 if(activator is Ala)
24 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>");
25 if(activator is Player)
26 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>");
27 rapee.HP -= rapee.HP/rapee.level;
28 return true;