removeall

This commit is contained in:
ntr 2019-12-09 15:52:49 +10:00
parent 3fafad8504
commit c5c6169806
2 changed files with 5 additions and 5 deletions

View File

@ -863,7 +863,7 @@ pub enum Value {
// Skills { construct: Uuid, colour: Colour }, // Skills { construct: Uuid, colour: Colour },
} }
#[derive(Debug,Clone,PartialEq,Serialize,Deserialize)] #[derive(Debug,PartialEq)]
pub enum Action { pub enum Action {
Hit, Hit,
Cast, Cast,
@ -871,7 +871,7 @@ pub enum Action {
Damage { construct: Uuid, values: Vec<Value>, colour: Colour }, Damage { construct: Uuid, values: Vec<Value>, colour: Colour },
Effect { construct: Uuid, effect: ConstructEffect }, Effect { construct: Uuid, effect: ConstructEffect },
Remove { construct: Uuid, effect: Effect }, Remove { construct: Uuid, effect: Effect },
RemoveAll { construct: Uuid }, RemoveAll { construct: Uuid },
IncreaseCooldowns { construct: Uuid, turns: usize }, IncreaseCooldowns { construct: Uuid, turns: usize },
// Recharge { skill: Skill, red: usize, blue: usize }, // Recharge { skill: Skill, red: usize, blue: usize },
} }

View File

@ -552,7 +552,7 @@ impl Cast {
], ],
Skill::Purge => vec![ Skill::Purge => vec![
Action::Purge { Action::RemoveAll {
construct: self.target, construct: self.target,
}, },
Action::Effect { Action::Effect {
@ -561,7 +561,7 @@ impl Cast {
}, },
], ],
Skill::PurgePlus => vec![ Skill::PurgePlus => vec![
Action::Purge { Action::RemoveAll {
construct: self.target, construct: self.target,
}, },
Action::Effect { Action::Effect {
@ -570,7 +570,7 @@ impl Cast {
}, },
], ],
Skill::PurgePlusPlus => vec![ Skill::PurgePlusPlus => vec![
Action::Purge { Action::RemoveAll {
construct: self.target, construct: self.target,
}, },
Action::Effect { Action::Effect {