I want to make a weapon that scales with the shards in the players possession in the most crude way of adding 1 fire damage for every fire shard
the straight forward idea of putting a <calculate> into the weapon didn't work because i couldn't find a tag to get the unit owner
but since even the devs had to build a work around for Pariden. I thought i might just copy that. Turns out it seem not possible to add an ability to a unit through a non consumable item, at least I couldn't find a way and all the core items that are supposed to do it ( like stealth boots) do not work as well, so i simply put the Autocast code block into the item.
And be hold my hero will cast at the beginning of each battle .. twice i guess it gets registered with the unit and then again from the weapon at the beginning of the battle, it also stacks with itself although being a non stack able spell.
I'm at a loss here does anybody have any ideas?