File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -604,12 +604,12 @@ public override bool GeneralGCD(out IAction? act)
604
604
return true ;
605
605
}
606
606
607
- if ( HolyCannonPvE . CanUse ( out act ) )
607
+ if ( SilverCannonPvE . CanUse ( out act ) )
608
608
{
609
609
return true ;
610
610
}
611
611
612
- if ( SilverCannonPvE . CanUse ( out act ) )
612
+ if ( HolyCannonPvE . CanUse ( out act ) )
613
613
{
614
614
return true ;
615
615
}
Original file line number Diff line number Diff line change @@ -124,6 +124,13 @@ private static unsafe void UpdateCancelCast()
124
124
&& Svc . Objects . SearchById ( Player . Object . CastTargetObjectId ) is IBattleChara b
125
125
&& b . IsEnemy ( ) && b . CurrentHp == 0 ;
126
126
127
+ // Cancel raise cast if target already has Raise status
128
+ bool tarHasRaise = false ;
129
+ if ( Svc . Objects . SearchById ( Player . Object . CastTargetObjectId ) is IBattleChara battleChara )
130
+ {
131
+ tarHasRaise = battleChara . HasStatus ( false , StatusID . Raise ) ;
132
+ }
133
+
127
134
float [ ] statusTimes = GetStatusTimes ( ) ;
128
135
129
136
float minStatusTime = float . MaxValue ;
@@ -137,7 +144,7 @@ private static unsafe void UpdateCancelCast()
137
144
138
145
bool stopDueStatus = statusTimes . Length > 0 && minStatusTime > Player . Object . TotalCastTime - Player . Object . CurrentCastTime && minStatusTime < 5 ;
139
146
140
- if ( _tarStopCastDelay . Delay ( tarDead ) || stopDueStatus )
147
+ if ( _tarStopCastDelay . Delay ( tarDead ) || stopDueStatus || tarHasRaise )
141
148
{
142
149
UIState * uiState = UIState . Instance ( ) ;
143
150
if ( uiState != null )
You can’t perform that action at this time.
0 commit comments