| 08-12-2007, 03:16 PM | #1 |
I am making a spell that does damadge over time and was just thinking if target of the spell has resistance of 50% to magic and I do 7 damadge to it for 6 seconds will it calculate the dmg properly i.e will it do 3.5 * 6 = 21 dmg or it will round it to 3 * 5 = 15 dmg This is a huge difference in performance. Also what are those attack types used for? (plant, death, force, acid ..) Do they have any effect on the damadge ? Is there a tutorial on this? |
| 08-12-2007, 06:24 PM | #2 | |
Quote:
Everything but Normal and Universal are of type Magic. Normal is normal/physical, and Universal bypasses everything. These types are just for the purpose of resistances and immunity (not armor). And, since they're basically all Magic they're kind of pointless =\. Edit: Oh and to your first question - I'm pretty sure it will deal damage properly. Haven't actually tried it, but health is kept track of with reals so it shouldn't round it off. |
| 08-12-2007, 06:58 PM | #3 |
Are you saying that if I do triggered dmg with type Magic and unit is magic immune it will not be dmged, and if I do it with universal it will get pwned no matter what? And what if it is invulnerable? |
| 08-12-2007, 07:47 PM | #4 |
Yes to the first part. I'm not sure if Universal damage bypasses invulnerability or not. I'm thinking no, but you'd have to try it. Actually, I'm almost positive that no damage type will deal damage to an invulnerable unit, since invulnerability modifies armor, not resistances/immunities. |
| 08-12-2007, 08:06 PM | #5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Quote:
Edit: To answer your other question - damage does not get rounded to the closest integer. |
| 08-12-2007, 08:51 PM | #6 |
+rep and bookmarking this page. |
| 08-13-2007, 07:12 AM | #7 |
Hitpoints are actually reals with decimal places (i think 2?) they're only displayed as integers. Damage is also real, so decimal values for damage and life are used, WCIII -looks- like it rounds them off, but it doesn't. |
| 05-18-2008, 12:06 AM | #8 |
For everybody who has bookmarked this page (like me), I would like to warn that the table does not seem to be correct altogether. Like TaintedReality said, DAMAGE_TYPE_NORMAL is physical (doesn't work on banished units). |
| 05-18-2008, 12:14 AM | #9 |
I made that table, and just noticed physical is the right word... Should update that site more often... anyways when I made that table I tested manually against banish and spell immune, it would have been a little lame if blizzard changed normal to make it physical, or could that have been a mistake from my end? Err, time to do tests... |
| 05-18-2008, 06:00 AM | #10 |
invulnerable units cannot be damaged in any way. |
| 05-18-2008, 08:17 AM | #11 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Quote:
|
| 05-18-2008, 03:22 PM | #12 | |
Quote:
|
| 05-18-2008, 04:17 PM | #13 |
It is lame that they aren't independent, a blizzard post said damagetype is the one dealing with magic resistance while attacktype deals with armor, now it looks like they are all mixed. |
