So I'm the process of making the various spells and skills I want, and I intend for many of them to have apply a set of effects to the enemies and a different set of effects to allies. For example, one skill damages an enemy and heals the most injured ally. Works like a charm.
However!
Things go completely pear shaped when I try to do this with multi-target abilities because the effects fire off once per target. Example:
This skill is supposed to deal water damage enemies, apply the "wet" ailment to them, and heal the party for a small amount. For the most part, it works, however as you can see, the healing portion (my custom code) fires off 4 times in this case--once per target.
So I guess my question is this: How can I force a skill to execute my custom code only once per use instead of once per target?
However!
Things go completely pear shaped when I try to do this with multi-target abilities because the effects fire off once per target. Example:
This skill is supposed to deal water damage enemies, apply the "wet" ailment to them, and heal the party for a small amount. For the most part, it works, however as you can see, the healing portion (my custom code) fires off 4 times in this case--once per target.
So I guess my question is this: How can I force a skill to execute my custom code only once per use instead of once per target?