| 03-09-2008, 12:43 PM | #1 |
Ok I cast a custom spell on an ethereal unit (standard unit banished with a spell) and no damage happens. I use this: 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 |
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 |
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 |
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 |
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 |
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 ???? |
| 03-09-2008, 02:24 PM | #7 |
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 |
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 | ||
Quote:
omg lol. Quote:
aaa blizzard lameeeeeeeeeeerz. EDIT: Strangely spell damage that is marked as universal can damage magic immune units. JASS:call UnitDamageTarget(GetTriggerUnit(), target, damage, false, false, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_UNIVERSAL, WEAPON_TYPE_WHOKNOWS) |
| 03-09-2008, 03:54 PM | #10 | |
Quote:
That's not strange that's why the universal exist :p |
| 03-09-2008, 07:52 PM | #11 |
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. |
