fix multiple ko event from cast

This commit is contained in:
Mashy 2019-11-13 16:08:24 +10:00
parent bb765b86e6
commit 729e48cee4

View File

@ -359,6 +359,11 @@ fn post_resolve(_skill: Skill, game: &mut Game, mut resolutions: Resolutions) ->
game.update_construct(&mut source);
game.update_construct(&mut target);
if target.is_ko() {
// Don't loop for multiple resolutions which led to KO
break;
}
};
return resolutions;