IAMColumbia / gp2portfoliogame-luke-goldfain

gp2portfoliogame-luke-goldfain created by GitHub Classroom
0 stars 1 forks source link

BUG: "Dead" characters do not disappear until all characters have moved #4

Closed luke-goldfain closed 4 years ago

luke-goldfain commented 4 years ago

When a character loses all of its health, it should die at the end of the turn and be no longer targetable. With separation of turns from Unity, this is no longer happening, and until all characters have moved, dead ones stick around and are targetable (however they are not controllable). Something in TurnManager is likely the cause.

luke-goldfain commented 4 years ago

This was easily fixed by moving the code that prunes dead characters to the "end turn" method.