From b3b9d40262e57812ed8873ed7451637d97a08580 Mon Sep 17 00:00:00 2001 From: Mashy Date: Mon, 6 Jan 2020 16:53:40 +1000 Subject: [PATCH] add cast animation check --- core/src/game.rs | 4 +++- core/src/skill.rs | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/game.rs b/core/src/game.rs index fcea46ab..73c01aa7 100644 --- a/core/src/game.rs +++ b/core/src/game.rs @@ -518,7 +518,9 @@ impl Game { .any(|c| !self.construct(c.target).is_ko() && !self.construct(c.target).immune(c.skill).is_some()); if castable { - self.action(cast, Action::Cast); + if cast.skill.cast_animation() { + self.action(cast, Action::Cast); + } if cast.skill.aoe() { self.action(cast, Action::HitAoe); } diff --git a/core/src/skill.rs b/core/src/skill.rs index 91aba876..5eb2f7c3 100644 --- a/core/src/skill.rs +++ b/core/src/skill.rs @@ -559,8 +559,6 @@ impl Skill { pub fn cast_animation(&self) -> bool { match self { - Skill::HybridBlast | - Skill::HasteStrike | Skill::CounterAttack| Skill::CounterAttackPlus | Skill::CounterAttackPlusPlus | // counter