mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 08:39:17 +00:00
Add runecrafting action unit tests
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package org.apollo.game.plugin.skill.runecrafting
|
||||
|
||||
import org.apollo.game.action.DistancedAction
|
||||
import org.apollo.game.model.Position
|
||||
import org.apollo.game.model.entity.Player
|
||||
|
||||
class TeleportToAltarAction(val player: Player, val start: Position, val distance: Int, val end: Position) : DistancedAction<Player>(0, true, player, start, distance) {
|
||||
override fun executeAction() {
|
||||
player.teleport(end)
|
||||
stop()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user