Skip to content

Commit 57de4bc

Browse files
committed
Excalibur special attack
1 parent bbfa140 commit 57de4bc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package game.combat.specialAttacks
2+
3+
import api.combat.specialAttack.SpecialAttackHandler.activation
4+
import api.predef.*
5+
import io.luna.game.model.mob.block.Animation
6+
import io.luna.game.model.mob.block.Animation.AnimationPriority
7+
import io.luna.game.model.mob.block.Graphic
8+
import io.luna.game.model.mob.combat.SpecialAttackType.EXCALIBUR
9+
10+
/**
11+
* The animation played during the special attack.
12+
*/
13+
val ANIMATION = Animation(1057, AnimationPriority.HIGH)
14+
15+
/**
16+
* The graphic played during the special attack.
17+
*/
18+
val GRAPHIC = Graphic(247, 0, 0)
19+
20+
activation(type = EXCALIBUR, drain = 100) {
21+
animation(ANIMATION)
22+
graphic(GRAPHIC)
23+
defence.boost(8)
24+
speak("For Camelot!")
25+
}

0 commit comments

Comments
 (0)