You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
push_squares = self.get_push_squares(attacker.position, defender.position)
crowd_push = self.arena.board[push_squares[0].y][push_squares[0].x] == Tile.CROWD and not defender.has_skill(Skill.STAND_FIRM)
But push_squares can be empty because in method get_push_squares we have:
if defender.has_skill(Skill.SIDE_STEP) and not attacker.has_skill(Skill.GRAB):
return self.get_adjacent_squares(to_position, out=True, occupied=False)
If defender has Side_Step and is surrounded by other units on each adjacent square, there is no empty square to return and push_squares is then empty -> we get an exception when calculating crowd_push due to push_squares[0].
The text was updated successfully, but these errors were encountered:
In game::get_block_probs we have:
But push_squares can be empty because in method get_push_squares we have:
If defender has Side_Step and is surrounded by other units on each adjacent square, there is no empty square to return and push_squares is then empty -> we get an exception when calculating crowd_push due to push_squares[0].
The text was updated successfully, but these errors were encountered: