This commit is contained in:
ntr 2019-12-10 22:33:15 +10:00
parent 2bb9482bc5
commit acd6ae62e0

View File

@ -517,6 +517,11 @@ impl Game {
// such as healing based on damage done etc
let mut event_list = vec![];
if let Some(effects) = self.construct(cast.source).disabled(cast.skill) {
self.add_resolution(&cast, &Event::Disable { construct: cast.source, effects });
return self;
}
if self.construct(cast.target).is_ko() {
self.add_resolution(&cast, &Event::TargetKo { construct: cast.target });
return self;