diff --git a/Server/src/main/content/minigame/barbassault/bots/BACombatState.kt b/Server/src/main/content/minigame/barbassault/bots/BACombatState.kt index 069ceaa65..2c30bd93a 100644 --- a/Server/src/main/content/minigame/barbassault/bots/BACombatState.kt +++ b/Server/src/main/content/minigame/barbassault/bots/BACombatState.kt @@ -23,14 +23,12 @@ import core.tools.RandomFunction class BACombatState(private val bot: BABot) { - - //session.roleCalls[BarbRole.ATTACKER]?.toCall fun fightNPCs() { bot.customState = "Fight NPCs" bot.AttackNpcsInRadius(25) //use Called AttackStyle val baSession = getBASession(bot) ?: return - val called = baSession.roleCalls[BarbRole.COLLECTOR]?.called as AttackerStyle + val called = (baSession.roleCalls[BarbRole.COLLECTOR]?.called ?: AttackerStyle.values().random() ) as AttackerStyle bot.properties.attackStyle = AttackStyle(called.attackStyle, BONUS_SLASH) }