Tweaked Code for Knockback
This commit is contained in:
parent
e77d954d5b
commit
393df6ec99
1 changed files with 5 additions and 1 deletions
|
@ -747,11 +747,15 @@ class BattleCalculatorAI:
|
||||||
toonId = self.toonAtkOrder[attackIndex]
|
toonId = self.toonAtkOrder[attackIndex]
|
||||||
attack = self.battle.toonAttacks[toonId]
|
attack = self.battle.toonAttacks[toonId]
|
||||||
atkTrack = self.__getActualTrack(attack)
|
atkTrack = self.__getActualTrack(attack)
|
||||||
|
TTOStyle = simbase.config.GetBool('want-tto-style-knockback', False)
|
||||||
if atkTrack == HEAL or atkTrack == PETSOS:
|
if atkTrack == HEAL or atkTrack == PETSOS:
|
||||||
return
|
return
|
||||||
tgts = self.__createToonTargetList(toonId)
|
tgts = self.__createToonTargetList(toonId)
|
||||||
for currTgt in tgts:
|
for currTgt in tgts:
|
||||||
|
if not TTOStyle:
|
||||||
tgtPos = self.battle.activeSuits.index(currTgt)
|
tgtPos = self.battle.activeSuits.index(currTgt)
|
||||||
|
else:
|
||||||
|
tgtPos = self.battle.suits.index(currTgt)
|
||||||
attackerId = self.toonAtkOrder[attackIndex]
|
attackerId = self.toonAtkOrder[attackIndex]
|
||||||
attack = self.battle.toonAttacks[attackerId]
|
attack = self.battle.toonAttacks[attackerId]
|
||||||
track = self.__getActualTrack(attack)
|
track = self.__getActualTrack(attack)
|
||||||
|
|
Loading…
Reference in a new issue