Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / ability / Hailstorm.as
blob6e84384c866093a3183cdf9f2eb416ab8227a84f
1 package org.sevenchan.dongs.ability
3 import org.sevenchan.dongs.Ability;
4 import org.sevenchan.dongs.Creature;
5 import org.sevenchan.dongs.screens.InfoScreen;
7 /**
8 * ...
9 * @author Harbinger
11 public class Hailstorm extends Ability
14 public function Hailstorm()
16 this.description = "";
17 this.label = "Hailstorm";
18 this.name = "Hailstorm";
19 this.manaCost = 15;
20 this.cannotBeRestrainedToUse = false;
23 override public function activate(activator:Creature, rapee:Creature):Boolean
25 if(Math.random()*10 <= 7.5) {
26 rapee.HP -= 10;
27 InfoScreen.push("<p>The Ala howls into the sky. You pause, wondering if it's wounded, when a ball of ice smacks into the ground next to you. You'rw showered with blows as a hailstorm suddenly erupts around you.</p>");
28 } else {
29 InfoScreen.push("<p>The Ala howls into the sky. You pause, wondering if it's wounded, when a ball of ice smacks into the ground next to you. A hailstorm forms around you, but you manage to escape harm, leaving the Ala very unhappy.</p>");
31 return true;