ig.

AbilityMimic

new AbilityMimic()

Ability to mimic other abilities. 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:

canFindTarget :Boolean

Ability can't find target automatically.

Default Value:
  • false
Source:

canTargetSelf :Boolean

Ability can't target self.

Default Value:
  • false
Source:

once

Default Value:
  • true
Source:

power :Number

How high of a mimic level this can mimic.

Source:

rangeX :Number

Range is based on effective size of the base character.

Source:

rangeY :Number

Range is based on effective size of the base character.

Source:

requiresTarget :Boolean

Ability needs target.

Default Value:
  • true
Source:

activateComplete()

Mimics new target abilities and shows mimic effect.

Source:

clone()

Source:

deactivateComplete()

Unmimics target.

Source:

hasValidTarget()

Checks if mimic power is high enough to mimic target mimic level.

Source:

initTypes()

Initializes mimic types.
- adds ig.Ability.TYPE.MIMIC to {@link ig.Ability#type}
- adds ig.EntityExtended.TYPE.MIMICABLE to {@link ig.Ability#typeTargetable}

Source:

initUpgrades()

Initializes mimic upgrades and sets up ranks based on ig.CONFIG.RANKS.

Source:

unmimic()

Undoes current mimic.

Source: