resolutions stuff
This commit is contained in:
+8
-2
@@ -458,6 +458,14 @@ impl Game {
|
||||
self.update_cryp(&mut source);
|
||||
self.update_cryp(&mut target);
|
||||
|
||||
vec![source, target].iter_mut()
|
||||
.for_each(|c| {
|
||||
if c.is_ko() {
|
||||
self.log.push(format!("{:?} KO", c.name));
|
||||
c.effects.clear();
|
||||
}
|
||||
});
|
||||
|
||||
return skill.clone();
|
||||
}).collect::<Vec<Cast>>();
|
||||
|
||||
@@ -477,8 +485,6 @@ impl Game {
|
||||
// println!("progressing durations for {:?}", cryp.name);
|
||||
|
||||
if cryp.is_ko() {
|
||||
self.log.push(format!("{:?} KO", cryp.name));
|
||||
cryp.effects.clear();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user