Merge pull request #96 from CrimsonFox762/develop

Fixed Knockback Damage for Lure
This commit is contained in:
Little Cat 2023-08-01 19:59:29 -03:00 committed by GitHub
commit 1b9f1ca888
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -747,11 +747,15 @@ class BattleCalculatorAI:
toonId = self.toonAtkOrder[attackIndex]
attack = self.battle.toonAttacks[toonId]
atkTrack = self.__getActualTrack(attack)
TTOStyle = simbase.config.GetBool('want-tto-style-knockback', False)
if atkTrack == HEAL or atkTrack == PETSOS:
return
tgts = self.__createToonTargetList(toonId)
for currTgt in tgts:
tgtPos = self.battle.suits.index(currTgt)
if not TTOStyle:
tgtPos = self.battle.activeSuits.index(currTgt)
else:
tgtPos = self.battle.suits.index(currTgt)
attackerId = self.toonAtkOrder[attackIndex]
attack = self.battle.toonAttacks[attackerId]
track = self.__getActualTrack(attack)