1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Weave light to take you to your highest hopes - the 6th Special Effect Contest is here!
    Dismiss Notice
  4. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

How can I make spells ignore the damage reduction from armor?

Discussion in 'World Editor Help Zone' started by Boar, Jan 2, 2012.

  1. Boar

    Boar

    Joined:
    Oct 10, 2009
    Messages:
    401
    Resources:
    0
    Resources:
    0
    Eg, 203 armor is 93% damage reduction, I do not want spells to be effected by this.
     
  2. nerovesper

    nerovesper

    Joined:
    Sep 29, 2008
    Messages:
    614
    Resources:
    2
    Maps:
    1
    Spells:
    1
    Resources:
    2
    Make spell deal chaos damage + divine type
     
  3. Meticulous

    Meticulous

    Joined:
    Nov 15, 2007
    Messages:
    779
    Resources:
    0
    Resources:
    0
    Spells already ignore armor value. They're only reduced by spell damage reduction (from the Runed Bracers item or abilities based on it) and armor type. By default, hero and divine armor types reduce spell damage. You can change this in gameplay constants.

    As far as I know the only way to deal damage that is reduced by NOTHING - truly pure damage - is to alter the unit's health directly with triggers. You can perform a check to see if the health reduction would kill the target (greater than their current health), and if so, instead set the target's health to 1 and deal 10000 damage of attack type spell and damage type universal (overkill in even the most extreme circumstances). Spell damage is reduced by spell damage reduction even if the damage type is universal, but it will damage magic immune and ethereal units; physical damage will not damage ethereal units even if the damage type is universal; magic damage will not damage magic immune units even if the damage type is universal.