Currently the mortar can completely skip firing the first round because of traversal time. This should get it to look in the right direction before the doArtilleryFire begins giving it a much better chance of actually firing instead of skipping.
My initial testing of this is done in a function that calls this one, it works as intended.
Testing it by setting direction just before it fires isn't enough time, but even if the strike fails for any reason having it face the right way doesn't matter all that much.
Currently the mortar can completely skip firing the first round because of traversal time. This should get it to look in the right direction before the
doArtilleryFire
begins giving it a much better chance of actually firing instead of skipping.My initial testing of this is done in a function that calls this one, it works as intended.
Testing it by setting direction just before it fires isn't enough time, but even if the strike fails for any reason having it face the right way doesn't matter all that much.