jazzisparis / JIP-LN-NVSE

An extension for the New Vegas Script Extender (NVSE)
GNU General Public License v3.0
50 stars 14 forks source link

Fix CastImmediate bugs #14

Closed Demorome closed 2 years ago

Demorome commented 3 years ago

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.

jazzisparis commented 2 years ago

Fixed.