mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-21 10:25:13 -06:00
oops, read the wrong Role Call
This commit is contained in:
parent
6b2d123184
commit
e24d5139c1
1 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue