only send ko event if theres damage
This commit is contained in:
parent
9acb2229a8
commit
fbae8f71eb
@ -348,15 +348,16 @@ fn post_resolve(_skill: Skill, game: &mut Game, mut resolutions: Resolutions) ->
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if target.is_ko() && event_target.green == 0 {
|
||||
// Make sure target ko is from this event
|
||||
target.effects.clear();
|
||||
resolutions.push(Resolution::new(&source, &target).event(Event::Ko()).stages(EventStages::PostOnly));
|
||||
}
|
||||
},
|
||||
_ => (),
|
||||
};
|
||||
|
||||
if target.is_ko() && event_target.green == 0 {
|
||||
// Make sure target ko is from this event
|
||||
target.effects.clear();
|
||||
resolutions.push(Resolution::new(&source, &target).event(Event::Ko()).stages(EventStages::PostOnly));
|
||||
}
|
||||
|
||||
game.update_construct(&mut source);
|
||||
game.update_construct(&mut target);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user