mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-22 14:26:11 +00:00
Fix Aerials (#142)
* Revert "Unnecessary global for aerial action buffer (#141)"
This reverts commit 4cc66547c0
.
* Remove Check
Non Aerials will just return None in
into_attack_air_kind()
This commit is contained in:
parent
7a5210b012
commit
5fee828169
1 changed files with 4 additions and 3 deletions
|
@ -8,6 +8,7 @@ use crate::training::shield;
|
||||||
use smash::app::{self, lua_bind::*};
|
use smash::app::{self, lua_bind::*};
|
||||||
use smash::lib::lua_const::*;
|
use smash::lib::lua_const::*;
|
||||||
|
|
||||||
|
static mut CURRENT_AERIAL: Action = Action::NAIR;
|
||||||
static mut QUEUE: Vec<Action> = vec![];
|
static mut QUEUE: Vec<Action> = vec![];
|
||||||
|
|
||||||
static mut FALLING_AERIAL: bool = false;
|
static mut FALLING_AERIAL: bool = false;
|
||||||
|
@ -68,8 +69,8 @@ pub fn full_reset(){
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_aerial(attack: Action) {
|
pub fn set_aerial(attack: Action) {
|
||||||
if !shield::is_aerial(attack) {
|
unsafe {
|
||||||
return;
|
CURRENT_AERIAL = attack;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +85,7 @@ pub unsafe fn get_attack_air_kind(
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
get_current_buffer().into_attack_air_kind()
|
CURRENT_AERIAL.into_attack_air_kind()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub unsafe fn get_command_flag_cat(
|
pub unsafe fn get_command_flag_cat(
|
||||||
|
|
Loading…
Add table
Reference in a new issue