ig.

AbilityDamage

new AbilityDamage()

Ability for damaging instantly. For projectile damage, use ig.AbilityShoot instead. IMPORTANT: always use abilities by calling the ig.Ability#activate method, and if the ability ig.Ability#requiresTarget make sure it ig.Ability#canFindTarget or you supply one via ig.Ability#setEntityTarget or ig.Ability#setEntityTargetFirst!

Author:
  • Collin Hover - collinhover.com
Source:
Example
// please see ig.Ability for a full example

canTargetSelf :Boolean

Damaging ability should not target self.

Default Value:
  • false
Source:

damage :Number

Damage done.

Default Value:
  • 1
Source:

damageAsPct :Boolean

Damage done in pct of target's health.

Default Value:
  • false
Source:

damageUnblockable :Boolean

Force damage through all defenses.

Default Value:
  • false
Source:

requiresTarget :Boolean

Damaging ability needs a target.

Default Value:
  • true
Source:

activateComplete()

Source:

clone()

Source:

initTypes()

Initializes damage types.
- adds ig.EntityExtended.TYPE.DAMAGEABLE to ig.Ability#typeTargetable

Source: