My guess? Make a dummy ability that targets a unit but doesn't do anything otherwise.
Make a function that retrieves the damaging effect of parameter unit's currently equipped weapon.
Make a trigger that fires when a unit is targeted by your dummy ability that deals damage, using the function you created to get the damaging effect by inputting the unit.
If it weren't so late at night I'd try and implement it in a map and upload it.
Hello guys, i need some help on making an ability to deal damage based on current weapon's damage.
The fact is that i want to have many weapons in my map, so it should also work after hero changes a weapon.
Please help me!
My guess? Make a dummy ability that targets a unit but doesn't do anything otherwise.
Make a function that retrieves the damaging effect of parameter unit's currently equipped weapon.
Make a trigger that fires when a unit is targeted by your dummy ability that deals damage, using the function you created to get the damaging effect by inputting the unit.
If it weren't so late at night I'd try and implement it in a map and upload it.