Added the ability for statuses to have data (like duration) and the sleep and toxic status effects
This commit is contained in:
@@ -51,7 +51,7 @@ class BattleEngine(val player: Party, val enemy: Party)(implicit val rng: Random
|
||||
val move = action.move
|
||||
val target = action.target
|
||||
if (user.isAlive) {
|
||||
if (user.status.forall(_.onBeforeMove(user, move, target, rng))) {
|
||||
if (user.status.forall(_.onBeforeMove(user, move, target))) {
|
||||
move.useMove(user, target)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user