@@ -896,11 +896,11 @@ public static Boolean DecidePlayerDieSequence(BTL_DATA btl)
896
896
GeoTexAnim . geoTexAnimPlayOnce ( btl . tranceTexanimptr , 0 ) ;
897
897
}
898
898
btl . evt . animFrame = 0 ;
899
- if ( ( btl . stat . cur & 8192u ) != 0u )
899
+ if ( ( btl . stat . cur & BattleStatus . AutoLife ) != 0u )
900
900
{
901
901
btl . die_seq = 7 ;
902
902
btl_cmd . SetCommand ( btl . cmd [ 5 ] , BattleCommandId . SysReraise , 0u , btl . btl_id , 0u ) ;
903
- btl_stat . RemoveStatus ( btl , 8192u ) ;
903
+ btl_stat . RemoveStatus ( btl , BattleStatus . AutoLife ) ;
904
904
UIManager . Battle . RemovePlayerFromAction ( ( Int32 ) btl . btl_id , true ) ;
905
905
return false ;
906
906
}
@@ -912,15 +912,15 @@ public static Boolean SetDefaultIdle(BTL_DATA btl)
912
912
{
913
913
FF9StateBattleSystem ff9Battle = FF9StateSystem . Battle . FF9Battle ;
914
914
CMD_DATA cur_cmd = ff9Battle . cur_cmd ;
915
- if ( Status . checkCurStat ( btl , 256u ) )
915
+ if ( Status . checkCurStat ( btl , BattleStatus . Death ) )
916
916
{
917
917
if ( btl . bi . player != 0 && btl . bi . dmg_mot_f == 0 && cur_cmd != null && btl != cur_cmd . regist && btl . die_seq == 0 && ! btl_mot . checkMotion ( btl , 4 ) && ! btl_mot . checkMotion ( btl , 9 ) )
918
918
{
919
919
btl_mot . setMotion ( btl , btl . bi . def_idle ) ;
920
920
}
921
921
return false ;
922
922
}
923
- if ( cur_cmd != null && ( Status . checkCurStat ( btl , 1107300355u ) || btl . bi . dmg_mot_f != 0 || ( btl_util . getSerialNumber ( btl ) == 2 && cur_cmd . cmd_no == BattleCommandId . MagicSword ) ) )
923
+ if ( cur_cmd != null && ( Status . checkCurStat ( btl , BattleStatus . FrozenAnimation ) || btl . bi . dmg_mot_f != 0 || ( btl_util . getSerialNumber ( btl ) == 2 && cur_cmd . cmd_no == BattleCommandId . MagicSword ) ) )
924
924
{
925
925
return false ;
926
926
}
@@ -936,11 +936,11 @@ public static Boolean SetDefaultIdle(BTL_DATA btl)
936
936
{
937
937
if ( btl . bi . cover == 0 && btl . bi . dodge == 0 )
938
938
{
939
- if ( ( ff9Battle . btl_escape_key != 0 || ( ff9Battle . cmd_status & 1 ) != 0 ) && ! Status . checkCurStat ( btl , 1107431747u ) )
939
+ if ( ( ff9Battle . btl_escape_key != 0 || ( ff9Battle . cmd_status & 1 ) != 0 ) && ! Status . checkCurStat ( btl , BattleStatus . CannotEscape ) )
940
940
{
941
941
btl_mot . setMotion ( btl , 17 ) ;
942
942
}
943
- else if ( Status . checkCurStat ( btl , 32768u ) )
943
+ else if ( Status . checkCurStat ( btl , BattleStatus . Defend ) )
944
944
{
945
945
btl_mot . setMotion ( btl , 13 ) ;
946
946
}
@@ -955,12 +955,12 @@ public static Boolean SetDefaultIdle(BTL_DATA btl)
955
955
btl_mot . setMotion ( btl , 9 ) ;
956
956
}
957
957
}
958
- else if ( btl_mot . checkMotion ( btl , 0 ) && Status . checkCurStat ( btl , 197122u ) )
958
+ else if ( btl_mot . checkMotion ( btl , 0 ) && Status . checkCurStat ( btl , BattleStatus . IdleDying ) )
959
959
{
960
960
global ::Debug . LogWarning ( btl . gameObject . name + " Dead" ) ;
961
961
btl_mot . setMotion ( btl , 7 ) ;
962
962
}
963
- else if ( ( btl_mot . checkMotion ( btl , 1 ) || btl_mot . checkMotion ( btl , 6 ) ) && ! Status . checkCurStat ( btl , 197122u ) )
963
+ else if ( ( btl_mot . checkMotion ( btl , 1 ) || btl_mot . checkMotion ( btl , 6 ) ) && ! Status . checkCurStat ( btl , BattleStatus . IdleDying ) )
964
964
{
965
965
btl_mot . setMotion ( btl , 5 ) ;
966
966
}
@@ -1040,7 +1040,7 @@ private static void PlayerDamageMotion(BTL_DATA btl)
1040
1040
{
1041
1041
if ( btl_mot . checkMotion ( btl , 2 ) )
1042
1042
{
1043
- if ( Status . checkCurStat ( btl , 256u ) )
1043
+ if ( Status . checkCurStat ( btl , BattleStatus . Death ) )
1044
1044
{
1045
1045
btl . die_seq = 1 ;
1046
1046
btl . bi . dmg_mot_f = 0 ;
@@ -1056,7 +1056,7 @@ private static void PlayerDamageMotion(BTL_DATA btl)
1056
1056
}
1057
1057
else if ( btl_mot . checkMotion ( btl , 3 ) )
1058
1058
{
1059
- if ( Status . checkCurStat ( btl , 256u ) )
1059
+ if ( Status . checkCurStat ( btl , BattleStatus . Death ) )
1060
1060
{
1061
1061
btl . die_seq = 5 ;
1062
1062
btl . bi . dmg_mot_f = 0 ;
@@ -1073,7 +1073,7 @@ private static void PlayerDamageMotion(BTL_DATA btl)
1073
1073
{
1074
1074
btl_mot . setMotion ( btl , 11 ) ;
1075
1075
}
1076
- else if ( Status . checkCurStat ( btl , 197122u ) )
1076
+ else if ( Status . checkCurStat ( btl , BattleStatus . IdleDying ) )
1077
1077
{
1078
1078
btl . bi . dmg_mot_f = 0 ;
1079
1079
}
@@ -1092,7 +1092,7 @@ private static void PlayerDamageMotion(BTL_DATA btl)
1092
1092
public static void EnemyDamageMotion ( BTL_DATA btl )
1093
1093
{
1094
1094
btl . bi . dmg_mot_f = 0 ;
1095
- if ( Status . checkCurStat ( btl , 256u ) )
1095
+ if ( Status . checkCurStat ( btl , BattleStatus . Death ) )
1096
1096
{
1097
1097
if ( btl_mot . checkMotion ( btl , 3 ) && btl_util . getEnemyPtr ( btl ) . info . die_dmg != 0 )
1098
1098
{
0 commit comments