Skip to content

Commit

Permalink
Fix chibug: simulator: suooportAttack
Browse files Browse the repository at this point in the history
  • Loading branch information
yukixz committed Oct 17, 2015
1 parent eac14f4 commit 1d8237f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/simulate.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,15 @@ koukuAttack = (sortieShip, enemyShip, kouku) ->
supportAttack = (enemyShip, support) ->
list = []
for damage, i in support
continue if i > 6
continue unless 1 < i < 6
damage = Math.floor(damage)
dmg = []
dmg.push damage
critical = []
critical.push kouku.api_ecl_flag[i] == 1
critical.push false # TODO: Aerial support may be cirtical attack.
list.push new Attack AttackType[checkAttackType[0]], null, enemyShip[i - 1], enemyShip[i - 1].hp[1], enemyShip[i - 1].hp[0], dmg, critical
enemyShip[i - 1].hp[0] -= damage
return list

#api_opening_atack :開幕雷撃戦 *スペルミスあり、注意
# api_frai :雷撃ターゲット
Expand Down

0 comments on commit 1d8237f

Please sign in to comment.