clear effects on ko
This commit is contained in:
parent
fb78e7cfae
commit
145302d8da
@ -588,7 +588,10 @@ impl Game {
|
|||||||
let casts = match event {
|
let casts = match event {
|
||||||
Event::Damage { construct, colour, amount, mitigation, display: _ } =>
|
Event::Damage { construct, colour, amount, mitigation, display: _ } =>
|
||||||
self.construct_by_id(*construct).unwrap().damage_trigger_casts(cast, event),
|
self.construct_by_id(*construct).unwrap().damage_trigger_casts(cast, event),
|
||||||
// Event::Ko {} => recalculate_stats()
|
Event::Ko { construct } =>{
|
||||||
|
self.construct_by_id(*construct).unwrap().effects.clear();
|
||||||
|
vec![]
|
||||||
|
},
|
||||||
// Event::Cast {} => set_cooldown()
|
// Event::Cast {} => set_cooldown()
|
||||||
_ => vec![],
|
_ => vec![],
|
||||||
};
|
};
|
||||||
|
|||||||
@ -751,6 +751,10 @@ impl Cast {
|
|||||||
colour: Colour::Blue,
|
colour: Colour::Blue,
|
||||||
values: vec![Value::Stat { construct: self.source, stat: Stat::BluePower, mult: self.skill.multiplier() }],
|
values: vec![Value::Stat { construct: self.source, stat: Stat::BluePower, mult: self.skill.multiplier() }],
|
||||||
},
|
},
|
||||||
|
Action::Effect {
|
||||||
|
construct: self.target,
|
||||||
|
effect: ConstructEffect { effect: Effect::Siphoned, duration: 1, meta: None }, // immunity to additional ticks
|
||||||
|
},
|
||||||
Action::Heal {
|
Action::Heal {
|
||||||
construct: self.source,
|
construct: self.source,
|
||||||
colour: Colour::Green,
|
colour: Colour::Green,
|
||||||
@ -768,6 +772,10 @@ impl Cast {
|
|||||||
colour: Colour::Blue,
|
colour: Colour::Blue,
|
||||||
values: vec![Value::Stat { construct: self.source, stat: Stat::BluePower, mult: self.skill.multiplier() }],
|
values: vec![Value::Stat { construct: self.source, stat: Stat::BluePower, mult: self.skill.multiplier() }],
|
||||||
},
|
},
|
||||||
|
Action::Effect {
|
||||||
|
construct: self.target,
|
||||||
|
effect: ConstructEffect { effect: Effect::Siphoned, duration: 1, meta: None }, // immunity to additional ticks
|
||||||
|
},
|
||||||
Action::Heal {
|
Action::Heal {
|
||||||
construct: self.source,
|
construct: self.source,
|
||||||
colour: Colour::Green,
|
colour: Colour::Green,
|
||||||
@ -785,6 +793,10 @@ impl Cast {
|
|||||||
colour: Colour::Blue,
|
colour: Colour::Blue,
|
||||||
values: vec![Value::Stat { construct: self.source, stat: Stat::BluePower, mult: self.skill.multiplier() }],
|
values: vec![Value::Stat { construct: self.source, stat: Stat::BluePower, mult: self.skill.multiplier() }],
|
||||||
},
|
},
|
||||||
|
Action::Effect {
|
||||||
|
construct: self.target,
|
||||||
|
effect: ConstructEffect { effect: Effect::Siphoned, duration: 1, meta: None }, // immunity to additional ticks
|
||||||
|
},
|
||||||
Action::Heal {
|
Action::Heal {
|
||||||
construct: self.source,
|
construct: self.source,
|
||||||
colour: Colour::Green,
|
colour: Colour::Green,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user