UnitDamageTarget
- Parameters
-
whichUnit unit
The source of the damage. To actual deal damage it should be not
null
.target widget
The target being damaged.
amount real
How much damage is being dealt.
attack boolean
Consider the damage dealt as being an attack.
ranged boolean
Consider the damage dealt as being from a ranged source.
attackType attacktype
damageType damagetype
weaponType weapontype
- comment
-
Deals damage to target widget from a source unit.
- note
-
For some insight about the different configurations of the different types see this post.
- patch
-
1.17a
- Source
- common.j (suggest an edit or discuss on Github)
- return type
-
boolean
- Source code
-
native UnitDamageTarget takes unit whichUnit, widget target, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype damageType, weapontype weaponType returns boolean