fix siphon order

This commit is contained in:
ntr 2019-05-02 09:49:24 +10:00
parent e40291cdaa
commit 9fc799b9f6

View File

@ -1100,6 +1100,8 @@ fn siphon_tick(source: &mut Cryp, target: &mut Cryp, mut results: Resolutions, s
let siphon_events = target.deal_blue_damage(Skill::SiphonTick, amount);
for e in siphon_events {
results.push(Resolution::new(source, target).event(e));
match e {
Event::Damage { amount, mitigation: _, colour: _, skill: _ } => {
let heal = source.deal_green_damage(Skill::Siphon, amount);
@ -1109,8 +1111,6 @@ fn siphon_tick(source: &mut Cryp, target: &mut Cryp, mut results: Resolutions, s
},
_ => (),
}
results.push(Resolution::new(source, target).event(e));
}
return results;