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
;
11 public class Lightning
extends Ability
14 public function Lightning
()
17 this.description
= "Utterly rape something for the cost of 100 Mana.";
18 this.label
= "Lightning";
19 this.name
= "Lightning";
20 this.cannotBeRestrainedToUse
= false;
23 override public function activate
(activator
:Creature
, rapee
:Creature
):Boolean
26 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>");
27 if (activator
is Player
) {
28 if (activator
.mana
< 100) {
29 InfoScreen
.push
("<p>You do not have enough mana.</p>");
32 InfoScreen
.push
("<h2>Lightning</h2><p>You raise your hands to the sky, and dark clouds immediately form, darkening the blasted 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>");
35 rapee
.HP
-= rapee
.HP
/ Math.max
(1, rapee
.level
- activator
.level
);