#why ApplyDamage does not do magic damage, but works with physical and pure damage?

1 messages · Page 1 of 1 (latest)

rocky lake
#

it definitely should deal magic damage. How do you know that it doesn't?

unkempt coyote
#

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

rocky lake
#

are you sure they don't have some kind of magic immunity?

#

are there any error in the console?

unkempt coyote
#

no errors in the console

unkempt coyote
#

No, I checked on the kobold, there is no magic immunity

rocky lake
#

can you test on a random hero? You can create one with -createhero axe enemy for instance

unkempt coyote
#

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

calm imp
#

do you have a damage filter?

unkempt coyote
#

no

rocky lake
#

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

rocky lake
calm imp
#

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

rocky lake
#

Also verified with a friend that is running a mod, magical damage works fine for them

alpine bridge
#

Magic damage works perfectly fine fir me