File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ void AttachEffectClass::AI()
173
173
174
174
if (this ->Type ->HasTint ())
175
175
this ->Techno ->MarkForRedraw ();
176
+
177
+ this ->NeedsRecalculateStat = true ;
176
178
}
177
179
178
180
if (this ->CurrentDelay > 0 )
@@ -193,6 +195,7 @@ void AttachEffectClass::AI()
193
195
if (!this ->ShouldBeDiscardedNow ())
194
196
{
195
197
this ->RefreshDuration ();
198
+ this ->NeedsRecalculateStat = true ;
196
199
this ->NeedsDurationRefresh = false ;
197
200
}
198
201
@@ -210,11 +213,18 @@ void AttachEffectClass::AI()
210
213
this ->CurrentDelay = this ->Delay ;
211
214
212
215
if (this ->Delay > 0 )
216
+ {
213
217
this ->KillAnim ();
218
+ this ->NeedsRecalculateStat = true ;
219
+ }
214
220
else if (!this ->ShouldBeDiscardedNow ())
221
+ {
215
222
this ->RefreshDuration ();
223
+ }
216
224
else
225
+ {
217
226
this ->NeedsDurationRefresh = true ;
227
+ }
218
228
219
229
return ;
220
230
}
@@ -481,6 +491,7 @@ bool AttachEffectClass::ResetIfRecreatable()
481
491
this ->KillAnim ();
482
492
this ->Duration = 0 ;
483
493
this ->CurrentDelay = this ->RecreationDelay ;
494
+ this ->NeedsRecalculateStat = true ;
484
495
485
496
return true ;
486
497
}
You can’t perform that action at this time.
0 commit comments