-
November 29th, 2021, 15:34 #1
[Rulesets with effectmanager and IF operator] IF does not check targeted effects
Hi
At least for 3.5E/PF1 there is some edge case in the logic of effect operators, here IF. Assume I have an effect like IF: invisible, then this would not return true, if I have an invisible effect which is targeted. The reason is simple: The code for IF does not use any target information (if there is any), one should hopefully be able to easily fix it by adding the code information about targets for its code.
For example, in the effect manager of 3.5E one has in the function of getEffectsByType the following piece of code:
Code:if rEffectComp.type == "IF" then if not checkConditional(rActor, v, rEffectComp.remainder) break; end
Code:if rEffectComp.type == "IF" then if not checkConditional(rActor, v, rEffectComp.remainder, rFilterActor) break; end
I assume that it might be a similar problem for 5E and so on, which is why I posted it here Let me know if you see any problem with that suggestion of code change
Best wishes
KelrugemMy extensions for 3.5e and Pathfinder
Bug reports please here
-
November 29th, 2021, 20:17 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,541
My concern with attempting to do this at this time is that I would have to really dig into the code to make sure we wouldn't create any circular scenarios, which is why I believe it does not pass the actor currently.
Regards,
JPG
-
November 29th, 2021, 21:11 #3My extensions for 3.5e and Pathfinder
Bug reports please here
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks