#why ApplyDamage does not do magic damage, but works with physical and pure damage?
1 messages · Page 1 of 1 (latest)
if the damage type is set to magic, the creeps do not take damage from spells, but if you change it to physical or pure, the creeps take damage
are you sure they don't have some kind of magic immunity?
are there any error in the console?
no errors in the console
No, I checked on the kobold, there is no magic immunity
can you test on a random hero? You can create one with -createhero axe enemy for instance
Checked it, it doesn't work. At the beginning of patch 7.33 in customs also did not work magic damage. Maybe I have the same problem? I haven't done any development work in a long time.
A month ago, the skills I wrote worked, since then I have not changed anything in the code, but the magic damage does not work now
do you have a damage filter?
no
the easiest way to do it would be to make a completely new mod that has basically no code at all, make a single lua ability that has OnSpellStart() deal magic damage
and see if it works
It is unlikely that magical damage just completed stopped working, it would destroy so many games
if it does, then it means your mod has something that is negating that damage in some way
no damage filter that filters magic damage, no 100% magic resistance, no change in code
try checking the modifiers of the creep you're hitting
Also verified with a friend that is running a mod, magical damage works fine for them
Magic damage works perfectly fine fir me