ig.

AbilityMelee

new AbilityMelee()

Ability for melee action. 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:

activateCastSettings

Show pow effect if melee is successful.

Source:

activateSetupCastSettings

Cast melee animation to setup.

Source:

canFindTarget

Ability should find target automatically.

Default Value:
  • true
Source:

cooldownDelay

Melee has a short cooldown.

Default Value:
  • 0.2
Source:

movable

Ability can be done while moving.

Default Value:
  • true
Source:

rangeX

Range is based on effective size of the base character. Generally, we want melee to have a bit larger range than what would be expected visually.

Source:

clone()

Source:

initTypes()

Initializes melee types.
- adds ig.Ability.TYPE.SPAMMABLE to {@link ig.Ability#type}

Source: