Attempts to fix the CastImmediate bugs, which are:
1) The effect can get applied to the player instead of the intended target.
2) The effect can get applied to some other nearby actor (probably related to the above).
TL;DR the patch I wrote forces the suitableMagicTarget remain at 0 so that it uses the specified target instead.
Well, hopefully. This was lightly tested by Miguick and I for hostile-type effects like flames and cazadore poison, but we didn't try with other types of effects.
I undo the patch right after it's used, since it might affect how effects are normally used.
Attempts to fix the
CastImmediate
bugs, which are: 1) The effect can get applied to the player instead of the intended target. 2) The effect can get applied to some other nearby actor (probably related to the above).I recommend reading the thread I wrote here for more details: https://discord.com/channels/481649736634466305/877994396979724358/877994398481264661
TL;DR the patch I wrote forces the
suitableMagicTarget
remain at 0 so that it uses the specified target instead. Well, hopefully. This was lightly tested by Miguick and I for hostile-type effects like flames and cazadore poison, but we didn't try with other types of effects. I undo the patch right after it's used, since it might affect how effects are normally used.