Skip to content

Commit

Permalink
feat: マナ切れによるブロック破壊を止められている際に設定を有効にしていることを通知する
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroma6666 committed Sep 14, 2024
1 parent 579d428 commit ada5b11
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,23 @@ object BreakUtil {
canBreakBlockMadeFromQuartz
}

def isBreakBlockManaFullyConsumed(
player: Player,
): Boolean = {

val isBreakBlockManaFullyConsumed = SeichiAssist
.instance
.breakSkillTargetConfigSystem
.api
.breakSkillTargetConfig(player, BreakSkillTargetConfigKey.ManaFullyConsumed)
.unsafeRunSync()

if(isBreakBlockManaFullyConsumed){
ActionBarMessageEffect(s"${RED}スキルでのマナ切れでブロック破壊を止めるは有効化されています").run(player).unsafeRunSync()
}
isBreakBlockManaFullyConsumed
}

private def equalsIgnoreNameCaseWorld(name: String): Boolean = {
val world = ManagedWorld.fromName(name).getOrElse(return false)

Expand Down

0 comments on commit ada5b11

Please sign in to comment.