add cast animation check
This commit is contained in:
parent
dd72c6403d
commit
b3b9d40262
@ -518,7 +518,9 @@ impl Game {
|
|||||||
.any(|c| !self.construct(c.target).is_ko() && !self.construct(c.target).immune(c.skill).is_some());
|
.any(|c| !self.construct(c.target).is_ko() && !self.construct(c.target).immune(c.skill).is_some());
|
||||||
|
|
||||||
if castable {
|
if castable {
|
||||||
|
if cast.skill.cast_animation() {
|
||||||
self.action(cast, Action::Cast);
|
self.action(cast, Action::Cast);
|
||||||
|
}
|
||||||
if cast.skill.aoe() {
|
if cast.skill.aoe() {
|
||||||
self.action(cast, Action::HitAoe);
|
self.action(cast, Action::HitAoe);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -559,8 +559,6 @@ impl Skill {
|
|||||||
|
|
||||||
pub fn cast_animation(&self) -> bool {
|
pub fn cast_animation(&self) -> bool {
|
||||||
match self {
|
match self {
|
||||||
Skill::HybridBlast |
|
|
||||||
Skill::HasteStrike |
|
|
||||||
Skill::CounterAttack|
|
Skill::CounterAttack|
|
||||||
Skill::CounterAttackPlus |
|
Skill::CounterAttackPlus |
|
||||||
Skill::CounterAttackPlusPlus | // counter
|
Skill::CounterAttackPlusPlus | // counter
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user