Does spell damage reduction protect from "ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC"?

afisakov

You can change this now in User CP.
Reaction score
37
I am working on a map on which spell damage is triggered and works through damage type magic. A sample line is below.
Code:
UnitDamageTargetBJ(udg_units16[1],udg_units16[2],I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units16[1],true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
I am wondering if having it set up as magic damage will cause spell damage reduction to affect it. If not than can u suggest another ability that might?
I want to create an item that decreases the damage of the spells cast against me by 30%. Well, I will make a range of such items but can figure out the rest once I get one working.

Thank you for your assistance
 

1346610

New Member
Reaction score
6
I want to create an item that decreases the damage of the spells cast against me by 30%. Well, I will make a range of such items but can figure out the rest once I get one working.

There allready is one: "Rune Bracers"

I am wondering if having it set up as magic damage will cause spell damage reduction to affect it

Ah,sorry.Yes i think it reduces,so just try to cast the spell on a unit with no reg and see if its damage is reduced with item
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top