cleanup
This commit is contained in:
parent
1bc871c66e
commit
9c5b7d0c89
@ -444,14 +444,11 @@ impl Construct {
|
||||
self.skills
|
||||
.iter_mut()
|
||||
.for_each(|s| match s.skill.base_cd() {
|
||||
Some(cd) => {
|
||||
let reduced_delay = cd.saturating_sub(delay_reduction);
|
||||
match reduced_delay {
|
||||
Some(cd) => match cd.saturating_sub(delay_reduction) {
|
||||
0 => s.set_cooldown(None),
|
||||
_ => s.set_cooldown(Some(reduced_delay))
|
||||
}
|
||||
_ => s.set_cooldown(Some(cd.saturating_sub(delay_reduction)))
|
||||
},
|
||||
None => s.set_cooldown(None)
|
||||
None => ()
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -11,7 +11,6 @@ use failure::err_msg;
|
||||
|
||||
use construct::{Construct, ConstructEffect, Stat, EffectMeta};
|
||||
use skill::{Skill, Cast};
|
||||
use spec::{Spec};
|
||||
use effect::{Effect};
|
||||
|
||||
use player::{Player};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user