HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damaging ethereal with triggers.

03-09-2008, 12:43 PM#1
cohadar
Ok I cast a custom spell on an ethereal unit (standard unit banished with a spell)
and no damage happens.
I use this:
Collapse JASS:
call UnitDamageTarget(GetTriggerUnit(), target, damage, false, false, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_UNIVERSAL, WEAPON_TYPE_WHOKNOWS)

And no it is not in the gameplay constants because I stated there that ethereal takes 2x damage from ANY attack type.
03-09-2008, 01:12 PM#2
Troll-Brain
Just because an etheral unit can be burt only with a magic (ATTACK_TYPE_MAGIC) or spell (ATTACK_TYPE_NORMAL) attack ?

But there is a bug too on the constant editor.

SIEGE = MAGIC and CHAOS = SPELLS
03-09-2008, 01:16 PM#3
Gorman
Well you could just set life if that doesnt work + detect killer,
I have no idea about JASS syntax, but thats not custom script syntax =P
i suggest trying it with GUI just to see if its something with the script.
03-09-2008, 01:21 PM#4
Troll-Brain
no UnitDamageTarget do exactly the same as an unit attack.
so if an unit cant attack the target, the target won't be hurt.
Had you ever seen an etheral unit be hurt with an attack different of spell or magic
03-09-2008, 01:38 PM#5
Toadcop
imho it's hardcoded. what if unit have a ethreal state so it can be damaged only by magic,spell attacks.
03-09-2008, 01:53 PM#6
cohadar
Omg it look slike the damage function is bugged???

Can someone please test the map I attached.

It displays zero when I do 5000 CHAOS damage to normal unit ????
Attached Files
File type: w3xDamageTesting.w3x (40.5 KB)
03-09-2008, 02:24 PM#7
Troll-Brain
i've seen the script and the InitTrig_Template is never started so it's a compilation bug
03-09-2008, 03:05 PM#8
Rising_Dusk
Chaos damage doesn't work on ethereal units. If you want to damage it, you need to use ATTACK_TYPE_NORMAL or ATTACK_TYPE_MAGIC.
03-09-2008, 03:23 PM#9
cohadar
Quote:
Originally Posted by Troll-Brain
i've seen the script and the InitTrig_Template is never started so it's a compilation bug

omg lol.

Quote:
Originally Posted by Rising_Dusk
Chaos damage doesn't work on ethereal units. If you want to damage it, you need to use ATTACK_TYPE_NORMAL or ATTACK_TYPE_MAGIC.

aaa blizzard lameeeeeeeeeeerz.

EDIT:
Strangely spell damage that is marked as universal can damage magic immune units.
Collapse JASS:
call UnitDamageTarget(GetTriggerUnit(), target, damage, false, false, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_UNIVERSAL, WEAPON_TYPE_WHOKNOWS)
03-09-2008, 03:54 PM#10
Troll-Brain
Quote:
EDIT:
Strangely spell damage that is marked as universal can damage magic immune units.

That's not strange that's why the universal exist :p
03-09-2008, 07:52 PM#11
masda70
If you really want ethereal to take damage from other types of damage, set "Gameplay - Magic Immunes Resist Damage" to false (obviously located in Gameplay Constants).
The only side-effect I can recall is that spell immune units will be able to take damage from magic attacks, but not from spells.