JASS Tools
News
Download
Help
JASS Manual
-------------------------------------------------------------

TYPES | FUNCTIONS | VARIABLES

Type damagetype

Global Variables | Functions That Return | Functions That Take

Ancestor Types:handle > damagetype
Children Types:none
Location:common.j, line 90

------------------------------------------------------------

Information about type damagetype

damagetype is used by the damage functions to determine if the damage will be magical (doesn't affect magic immune), phisical (doesn't affect ethereal) or Universal (affects magic immune and ethereal))

Using null instead of the preset variables defaults to the DAMAGE_TYPE_UNKNOWN which is actually able to damage invulnerable units.

Click on the variables next for information about which one is magical, phisical or universal.

BACK TO TOP

------------------------------------------------------------

Global variables of type damagetype:

common.j:
DAMAGE_TYPE_ACID, DAMAGE_TYPE_COLD, DAMAGE_TYPE_DEATH, DAMAGE_TYPE_DEFENSIVE, DAMAGE_TYPE_DEMOLITION, DAMAGE_TYPE_DISEASE, DAMAGE_TYPE_DIVINE, DAMAGE_TYPE_ENHANCED, DAMAGE_TYPE_FIRE, DAMAGE_TYPE_FORCE, DAMAGE_TYPE_LIGHTNING, DAMAGE_TYPE_MAGIC, DAMAGE_TYPE_MIND, DAMAGE_TYPE_NORMAL, DAMAGE_TYPE_PLANT, DAMAGE_TYPE_POISON, DAMAGE_TYPE_SHADOW_STRIKE, DAMAGE_TYPE_SLOW_POISON, DAMAGE_TYPE_SONIC, DAMAGE_TYPE_SPIRIT_LINK, DAMAGE_TYPE_UNIVERSAL, DAMAGE_TYPE_UNKNOWN

BACK TO TOP

------------------------------------------------------------

Functions that return type damagetype (     common.j,      common.ai,      Blizzard.j):

constant native ConvertDamageType (integer i) returns damagetype

BACK TO TOP

------------------------------------------------------------

Functions that take type damagetype as a parameter (     common.j,      common.ai,      Blizzard.j):

native UnitDamagePoint (unit whichUnit, real delay, real radius, real x, real y, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype damageType, weapontype weaponType) returns boolean
function UnitDamagePointLoc (unit whichUnit, real delay, real radius, location loc, real amount, attacktype whichAttack, damagetype whichDamage) returns boolean
native UnitDamageTarget (unit whichUnit, widget target, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype damageType, weapontype weaponType) returns boolean
function UnitDamageTargetBJ (unit whichUnit, unit target, real amount, attacktype whichAttack, damagetype whichDamage) returns boolean

BACK TO TOP

------------------------------------------------------------
Copyright (c) 2003 Jeff Pang
Not affiliated or endorsed by Blizzard Entertainment
SourceForge.net Logo