update test

This commit is contained in:
ntr 2019-12-12 14:43:09 +10:00
parent 5d29b4509e
commit 4397ce2f2f
2 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,4 @@
# FIXME # FIXME
check silence skill multiplier check silence skill multiplier
game ready not auto starting resolve phase game ready not auto starting resolve phase
purify conditional healing purify conditional healing
absorb post resolve

View File

@ -440,8 +440,7 @@ impl Game {
// because need to check cooldown use before pushing them into the complete list // because need to check cooldown use before pushing them into the complete list
let mut r_animation_ms = 0; let mut r_animation_ms = 0;
while let Some(cast) = self.stack.pop() { while let Some(cast) = self.stack.pop() {
let events = vec![]; self.resolve(cast, vec![]);
self.resolve(cast, events);
// sort the stack again in case speeds have changed // sort the stack again in case speeds have changed
self.stack_sort_speed(); self.stack_sort_speed();
@ -1718,12 +1717,12 @@ mod tests {
let source = game.players[0].constructs[0].id; let source = game.players[0].constructs[0].id;
let target = game.players[1].constructs[0].id; let target = game.players[1].constructs[0].id;
game.resolve(Cast::new(source, source_player_id, target, Skill::Decay)); game.resolve(Cast::new(source, source_player_id, target, Skill::Decay), vec![]);
// 3 for Decayed =/ // 3 for Decayed =/
assert!(game.players[1].constructs[0].effects.len() == 3); assert!(game.players[1].constructs[0].effects.len() == 3);
game.resolve(Cast::new(target, target_player_id, target, Skill::Purify)); game.resolve(Cast::new(target, target_player_id, target, Skill::Purify), vec![]);
assert!(game.players[1].constructs[0].effects.len() == 1); assert!(game.players[1].constructs[0].effects.len() == 1);