Mana Coil targeting

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
silentsnack
Wayist
Posts: 23
Joined: Tue Feb 14, 2017 9:08 pm

Mana Coil targeting

#1 Post by silentsnack »

Dunno whether this would fall in the "bug that's actually a feature" category: the Mana Coil tinker's autocast lacks a check to see if the caster is hitting themselves with an aoe spell, which can lead to a rather amusing death. (More amusing in this instance since I was already in debug-mode to test something entirely unrelated, so I could cheat-revive and kill myself again to reproduce the behavior.)




Looking at the code, talent_on_spell doesn't seem to care what it hits... so a special-case quick kludge would be to make Mana Coil trigger an intermediary talent which checks for a valid target before before casting Lightning. Or a more general solution would be to give talent_on_spell (and wildgift/mind/steam?) a token value to tell it whether to activate on friend/foe/self/all hits. Which could be mechanically useful for other things as well.

Post Reply