1 package org
.sevenchan
.dongs
.ability
3 import org
.sevenchan
.dongs
.Ability
;
4 import org
.sevenchan
.dongs
.Creature
;
5 import org
.sevenchan
.dongs
.creature
.Player
;
6 import org
.sevenchan
.dongs
.screens
.InfoScreen
;
12 public class Sandstorm
extends Ability
15 public function Sandstorm
()
18 this.description
= "Summons a massive sandstorm to blind your enemies.";
19 this.label
= "Sandstrm";
20 this.name
= "Sandstorm";
21 this.cannotBeRestrainedToUse
= false;
24 override public function activate
(activator
:Creature
, rapee
:Creature
):Boolean
26 var text
:String = "<h2>Sandstorm</h2>";
27 text
+= "<p>"+((activator
is Player
) ? "You summon ":"The " + activator
.getTypeName
() + " summons ") + " a powerful whirlwind of blinding sand and dust.</p>";
29 text
+= rapee
.gender
.doReplace
("<p><b>%CPOS% speed was cut in half!</b></p>");
30 InfoScreen
.push
(text
);