Merge branch 'develop' into release/0.3.0
This commit is contained in:
commit
1e96a8ee5a
@ -24,8 +24,9 @@
|
|||||||
* make our own toasts / msg pane
|
* make our own toasts / msg pane
|
||||||
* send account_instances on players update
|
* send account_instances on players update
|
||||||
|
|
||||||
* only clear effects on post_resolve
|
* convert PlusPlus to ++ or rename
|
||||||
electrify doesn't work if you ko the construct
|
* clear skill (if currently targetted)
|
||||||
|
* increase power to speed up early rounds
|
||||||
|
|
||||||
## SOON
|
## SOON
|
||||||
*SERVER*
|
*SERVER*
|
||||||
|
|||||||
@ -599,11 +599,6 @@ impl Construct {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.is_ko() {
|
|
||||||
events.push(Event::Ko ());
|
|
||||||
self.effects.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
return events;
|
return events;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -677,12 +672,6 @@ impl Construct {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if self.is_ko() {
|
|
||||||
events.push(Event::Ko ());
|
|
||||||
self.effects.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
return events;
|
return events;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -752,11 +741,6 @@ impl Construct {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if self.is_ko() {
|
|
||||||
events.push(Event::Ko ());
|
|
||||||
self.effects.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
return events;
|
return events;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1165,6 +1165,9 @@ mod tests {
|
|||||||
let x_construct = x_player.constructs[0].clone();
|
let x_construct = x_player.constructs[0].clone();
|
||||||
let y_construct = y_player.constructs[0].clone();
|
let y_construct = y_player.constructs[0].clone();
|
||||||
|
|
||||||
|
// one shot the target construct (should still get debuffed)
|
||||||
|
game.player_by_id(y_player.id).unwrap().construct_by_id(y_construct.id).unwrap().red_power.force(1000000000);
|
||||||
|
|
||||||
game.construct_by_id(x_construct.id).unwrap().learn_mut(Skill::Electrify);
|
game.construct_by_id(x_construct.id).unwrap().learn_mut(Skill::Electrify);
|
||||||
|
|
||||||
while game.construct_by_id(x_construct.id).unwrap().skill_on_cd(Skill::Electrify).is_some() {
|
while game.construct_by_id(x_construct.id).unwrap().skill_on_cd(Skill::Electrify).is_some() {
|
||||||
|
|||||||
@ -344,6 +344,11 @@ fn post_resolve(_skill: Skill, game: &mut Game, mut resolutions: Resolutions) ->
|
|||||||
_ => (),
|
_ => (),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if target.is_ko() {
|
||||||
|
resolutions.push(Resolution::new(&source, &target).event(Event::Ko()));
|
||||||
|
target.effects.clear();
|
||||||
|
}
|
||||||
|
|
||||||
game.update_construct(&mut source);
|
game.update_construct(&mut source);
|
||||||
game.update_construct(&mut target);
|
game.update_construct(&mut target);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user