fix: Accessed None 'FireballBarrageSM' (WMPawn_ZedHusk_Omega:ANIMNOTIFY_HuskRandomFireballAttack)

ScriptWarning: Accessed None 'FireballBarrageSM'
011WMPawn_ZedHusk_Omega KF-OmahaBeach.TheWorld:PersistentLevel.WMPawn_ZedHusk_Omega_17
011Function CustomZeds.WMPawn_ZedHusk_Omega:ANIMNOTIFY_HuskRandomFireballAttack:0093
This commit is contained in:
GenZmeY 2022-07-13 09:00:36 +03:00
parent 841e6c8297
commit 1098caff4a

View File

@ -115,10 +115,13 @@ function ANIMNOTIFY_HuskRandomFireballAttack()
if (HuskAIC != None)
{
FireballBarrageSM = WMSM_Husk_Omega_FireBallBarrageAttack(SpecialMoves[SpecialMove]);
if (FireballBarrageSM != None)
{
HuskAIC.ShootFireballBarrage(default.SuicideFireballClass, FireballBarrageSM.GetFireOffset());
}
}
}
}
/** Called when husk backpack is exploded or when husk suicides */
function TriggerExplosion(optional bool bIgnoreHumans)