HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Damage

07-28-2006, 02:50 AM#1
ShadowDestroyer
How do you make a trigger deal spell damage to a spell immune unit. (Like an ultimate)
07-28-2006, 05:43 AM#2
BertTheJasser
Ultimates are special, and spell damage is magical which can not affect magic immune units (logical speaking ) and you will never be able to do it without a workaround(remove immunity -- do damage -- add immunity)
07-28-2006, 06:15 AM#3
DioD
There is many damage\attack types

Normal==spell damage + devine
will ignore any armor
07-28-2006, 09:00 AM#4
Captain Griffen
Attack type normal, and damage type universal I believe. Here is the full list of them:

Collapse JASS:
    constant attacktype         ATTACK_TYPE_NORMAL              = ConvertAttackType(0)
    constant attacktype         ATTACK_TYPE_MELEE               = ConvertAttackType(1)
    constant attacktype         ATTACK_TYPE_PIERCE              = ConvertAttackType(2)
    constant attacktype         ATTACK_TYPE_SIEGE               = ConvertAttackType(3)
    constant attacktype         ATTACK_TYPE_MAGIC               = ConvertAttackType(4)
    constant attacktype         ATTACK_TYPE_CHAOS               = ConvertAttackType(5)
    constant attacktype         ATTACK_TYPE_HERO                = ConvertAttackType(6)

    constant damagetype         DAMAGE_TYPE_UNKNOWN             = ConvertDamageType(0)
    constant damagetype         DAMAGE_TYPE_NORMAL              = ConvertDamageType(4)
    constant damagetype         DAMAGE_TYPE_ENHANCED            = ConvertDamageType(5)
    constant damagetype         DAMAGE_TYPE_FIRE                = ConvertDamageType(8)
    constant damagetype         DAMAGE_TYPE_COLD                = ConvertDamageType(9)
    constant damagetype         DAMAGE_TYPE_LIGHTNING           = ConvertDamageType(10)
    constant damagetype         DAMAGE_TYPE_POISON              = ConvertDamageType(11)
    constant damagetype         DAMAGE_TYPE_DISEASE             = ConvertDamageType(12)
    constant damagetype         DAMAGE_TYPE_DIVINE              = ConvertDamageType(13)
    constant damagetype         DAMAGE_TYPE_MAGIC               = ConvertDamageType(14)
    constant damagetype         DAMAGE_TYPE_SONIC               = ConvertDamageType(15)
    constant damagetype         DAMAGE_TYPE_ACID                = ConvertDamageType(16)
    constant damagetype         DAMAGE_TYPE_FORCE               = ConvertDamageType(17)
    constant damagetype         DAMAGE_TYPE_DEATH               = ConvertDamageType(18)
    constant damagetype         DAMAGE_TYPE_MIND                = ConvertDamageType(19)
    constant damagetype         DAMAGE_TYPE_PLANT               = ConvertDamageType(20)
    constant damagetype         DAMAGE_TYPE_DEFENSIVE           = ConvertDamageType(21)
    constant damagetype         DAMAGE_TYPE_DEMOLITION          = ConvertDamageType(22)
    constant damagetype         DAMAGE_TYPE_SLOW_POISON         = ConvertDamageType(23)
    constant damagetype         DAMAGE_TYPE_SPIRIT_LINK         = ConvertDamageType(24)
    constant damagetype         DAMAGE_TYPE_SHADOW_STRIKE       = ConvertDamageType(25)
    constant damagetype         DAMAGE_TYPE_UNIVERSAL           = ConvertDamageType(26)

    constant weapontype         WEAPON_TYPE_WHOKNOWS            = ConvertWeaponType(0)
    constant weapontype         WEAPON_TYPE_METAL_LIGHT_CHOP    = ConvertWeaponType(1)
    constant weapontype         WEAPON_TYPE_METAL_MEDIUM_CHOP   = ConvertWeaponType(2)
    constant weapontype         WEAPON_TYPE_METAL_HEAVY_CHOP    = ConvertWeaponType(3)
    constant weapontype         WEAPON_TYPE_METAL_LIGHT_SLICE   = ConvertWeaponType(4)
    constant weapontype         WEAPON_TYPE_METAL_MEDIUM_SLICE  = ConvertWeaponType(5)
    constant weapontype         WEAPON_TYPE_METAL_HEAVY_SLICE   = ConvertWeaponType(6)
    constant weapontype         WEAPON_TYPE_METAL_MEDIUM_BASH   = ConvertWeaponType(7)
    constant weapontype         WEAPON_TYPE_METAL_HEAVY_BASH    = ConvertWeaponType(8)
    constant weapontype         WEAPON_TYPE_METAL_MEDIUM_STAB   = ConvertWeaponType(9)
    constant weapontype         WEAPON_TYPE_METAL_HEAVY_STAB    = ConvertWeaponType(10)
    constant weapontype         WEAPON_TYPE_WOOD_LIGHT_SLICE    = ConvertWeaponType(11)
    constant weapontype         WEAPON_TYPE_WOOD_MEDIUM_SLICE   = ConvertWeaponType(12)
    constant weapontype         WEAPON_TYPE_WOOD_HEAVY_SLICE    = ConvertWeaponType(13)
    constant weapontype         WEAPON_TYPE_WOOD_LIGHT_BASH     = ConvertWeaponType(14)
    constant weapontype         WEAPON_TYPE_WOOD_MEDIUM_BASH    = ConvertWeaponType(15)
    constant weapontype         WEAPON_TYPE_WOOD_HEAVY_BASH     = ConvertWeaponType(16)
    constant weapontype         WEAPON_TYPE_WOOD_LIGHT_STAB     = ConvertWeaponType(17)
    constant weapontype         WEAPON_TYPE_WOOD_MEDIUM_STAB    = ConvertWeaponType(18)
    constant weapontype         WEAPON_TYPE_CLAW_LIGHT_SLICE    = ConvertWeaponType(19)
    constant weapontype         WEAPON_TYPE_CLAW_MEDIUM_SLICE   = ConvertWeaponType(20)
    constant weapontype         WEAPON_TYPE_CLAW_HEAVY_SLICE    = ConvertWeaponType(21)
    constant weapontype         WEAPON_TYPE_AXE_MEDIUM_CHOP     = ConvertWeaponType(22)
    constant weapontype         WEAPON_TYPE_ROCK_HEAVY_BASH     = ConvertWeaponType(23)
07-28-2006, 09:35 AM#5
BertTheJasser
That does not fit to the question, he asked, how to dealSPELL-damage to a magic immune unit.
07-28-2006, 10:16 AM#6
Freakazoid
Add Ancient and Non-Ancient to the targets.
07-28-2006, 10:21 AM#7
Captain Griffen
Quote:
Originally Posted by BertTheJasser
That does not fit to the question, he asked, how to dealSPELL-damage to a magic immune unit.

He said via trigger. And I said UNIVERSAL. Universal is the damage type used by ultimates.
07-28-2006, 11:07 AM#8
Jazradel
Which doesn't deal damage to magic immune units anymore.
07-28-2006, 11:10 AM#9
Captain Griffen
In that case unknown is probably the best bet.
07-28-2006, 01:27 PM#10
Vexorian
Quote:
Originally Posted by Jazradel
Which doesn't deal damage to magic immune units anymore.
what did blizzard go insane? as if spell immune weren't strong enough. Tried DAMAGE_TYPE_UNKNOWN last time I checked it could damage even invulnerable
07-28-2006, 02:17 PM#11
The)TideHunter(
Unknown and Universal deal 100% damage no matter what, unless it has been changed VERY recently.
07-28-2006, 10:00 PM#12
ShadowDestroyer
Neither seem to be working... Basically, I want Finger of Death to apply correctly to an Avatared unit. Finger of Death is an ultimate.
07-28-2006, 10:06 PM#13
Captain Griffen
Quote:
Originally Posted by The)TideHunter(
Unknown and Universal deal 100% damage no matter what, unless it has been changed VERY recently.

Actually I believe universal is affected by armour type, so heroes' spell resistance still affects it.
07-28-2006, 10:09 PM#14
ShadowDestroyer
But Unknown isn't working either...

I know it can be done.
07-28-2006, 10:10 PM#15
Captain Griffen
Look...how can I know what you are doing wrong if I don't know what you are doing?

Post your code!