lep/jassdoc

UnitDamageTarget - does nothing if source is null

Cokemonkey11 opened this issue · 1 comments

jassdoc/unit.j

Line 645 in e568f1c

native UnitDamageTarget takes unit whichUnit, widget target, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype damageType, weapontype weaponType returns boolean

the source (first arg) must be an actual unit

Setting source and target as the same unit is an easy way to resolve if intentionally don't have a source

lep commented

Closed by 30877e8