fix siphon order
This commit is contained in:
parent
e40291cdaa
commit
9fc799b9f6
@ -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);
|
let siphon_events = target.deal_blue_damage(Skill::SiphonTick, amount);
|
||||||
|
|
||||||
for e in siphon_events {
|
for e in siphon_events {
|
||||||
|
results.push(Resolution::new(source, target).event(e));
|
||||||
|
|
||||||
match e {
|
match e {
|
||||||
Event::Damage { amount, mitigation: _, colour: _, skill: _ } => {
|
Event::Damage { amount, mitigation: _, colour: _, skill: _ } => {
|
||||||
let heal = source.deal_green_damage(Skill::Siphon, amount);
|
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;
|
return results;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user