oops, read the wrong Role Call

This commit is contained in:
Tooze 2026-05-27 00:57:37 -04:00
parent 6b2d123184
commit e24d5139c1

View file

@ -12,10 +12,6 @@ import content.minigame.barbassault.getBASession
import core.game.interaction.MovementPulse
import core.game.node.entity.combat.equipment.WeaponInterface.AttackStyle
import core.game.node.entity.combat.equipment.WeaponInterface.BONUS_SLASH
import core.game.node.entity.combat.equipment.WeaponInterface.STYLE_ACCURATE
import core.game.node.entity.combat.equipment.WeaponInterface.STYLE_AGGRESSIVE
import core.game.node.entity.combat.equipment.WeaponInterface.STYLE_CONTROLLED
import core.game.node.entity.combat.equipment.WeaponInterface.STYLE_DEFENSIVE
import core.game.world.GameWorld
import core.game.world.map.Location
import core.game.world.map.path.Pathfinder
@ -28,7 +24,7 @@ class BACombatState(private val bot: BABot) {
bot.AttackNpcsInRadius(25)
//use Called AttackStyle
val baSession = getBASession(bot) ?: return
val called = (baSession.roleCalls[BarbRole.COLLECTOR]?.called ?: AttackerStyle.values().random() ) as AttackerStyle
val called = (baSession.roleCalls[BarbRole.ATTACKER]?.called ?: AttackerStyle.values().random() ) as AttackerStyle
bot.properties.attackStyle = AttackStyle(called.attackStyle, BONUS_SLASH)
}