Because this function does a fixed amount of damage... You just used a formula to determine the current damage of the hero (aproximately) by ordering him to damage the target using that formula. From now I don't know any way to detect the exact damage of an unit. I already tried it several times...
DaelinBecause this function does a fixed amount of damage... You just used a formula to determine the current damage of the hero (aproximately) by ordering him to damage the target using that formula. From now I don't know any way to detect the exact damage of an unit. I already tried it several times...
~Daelin
Well if you want to detect the exact damage of a hero it is something along the lines of
Number between- (base damage+primary atti)+#of dice and (base damage+primary atti)+# of dice*#sides per die
I cant remeber but I think that should be the damage for a hero type unit
I seriously have to try and develop some JASS script which detects the damage of each hero. Unfortunately it might need a list of all boostable items, not to mention bonuses. But except that it shouldn't be hard. I will attempt something...