Blackfoot
February 15th, 2016, 21:51
I'm working on a piece of my Champions Ruleset where it does a secondary roll based on the results of the Damage Roll. This roll generates something called 'Knockback' which is modified by certain aspects of the target (knockback resistance, if they are 'clinging' to something, if they are 'flying'... stuff like that). Anyway... I need to reference the Target but it seems to be getting lost on me and I'm having trouble tracking down where the target is captured. My ruleset is a subRuleset of CoreRPG and was originally based on but does not share code with 3.5E (code was duplicated and modified, not inherited). Is there a getTarget function or something?
I'm following the 3.5E DamageManager code through and it seems to not need rTarget for some functions but has it at the end when it's time to applyDamage. PerformAction (where it starts) doesn't seem to give a hoot about targets. I am guessing, the target gets retrieved along the way... or is out there floating around somewhere as a variable.. but it seems like the easiest thing to do would be to call rSource and ask it who it's target is when I need it.
I'm following the 3.5E DamageManager code through and it seems to not need rTarget for some functions but has it at the end when it's time to applyDamage. PerformAction (where it starts) doesn't seem to give a hoot about targets. I am guessing, the target gets retrieved along the way... or is out there floating around somewhere as a variable.. but it seems like the easiest thing to do would be to call rSource and ask it who it's target is when I need it.