No Attack Type Spell in vJass?

Level 13
Joined
Aug 19, 2014
Messages
1,118
Hello guys I didn't see any ATTACK_TYPE_SPELL in vJass or there is but I haven't saw it yet.

  • Unit - Cause Temp_Unit to damage (Picked unit), dealing Temp_Total_Value damage of attack type Spells and damage type Normal
There is an attack type spells in GUI, I wonder if there is in vJass.
 
Level 13
Joined
Aug 19, 2014
Messages
1,118
Uhmm..... could you give me an example? I want the attack type to be Spells so that the damage will be reduce by an item called Spell Damage Reduction and not by an armor.
 

EdgeOfChaos

E

EdgeOfChaos

call UnitDamageTarget(source,target,damage,true,false,ATTACK_TYPE_MAGIC,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS)
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
Attack Type "Spells" is written as ATTACK_TYPE_NORMAL
Attack Type "Normal" is written as ATTACK_TYPE_MELEE

Armor is independent from the Attack Type.
Attack Type merely deals with Armor Type (not the value but the type) and classificational features such as spell resistance and defend.

Armor value is calculated in certain Damage Types.
Damage Type Universal will not be affected by armor for example.
Most Damage Types are useless as far as I know but there was a thread about it... I think on WC3c or WC2Tutorials.
 
Top