CDOTA_Ability_Lua extends CDOTABaseAbility
s
c
#
CastFilterResult(): UnitFilterResult
s
c
#

Determine whether an issued command with no target is valid.
CastFilterResultLocation(locationVector): UnitFilterResult
s
c
#

Determine whether an issued command on a location is valid.
CastFilterResultTarget(targetCDOTA_BaseNPC): UnitFilterResult
s
c
#

Determine whether an issued command on a target is valid.
GetAbilityTextureName(): string
s
c
#

Allows code overriding of the ability texture shown in the HUD.
GetAOERadius(): float
s
c
#

Controls the size of the AOE casting cursor.
GetAssociatedPrimaryAbilities(): string
s
c
#

Returns abilities that are stolen simultaneously, or otherwise related in functionality.
GetAssociatedSecondaryAbilities(): string
s
c
#

Returns other abilities that are stolen simultaneously, or otherwise related in functionality. Generally hidden abilities.
GetBehavior(): DOTA_ABILITY_BEHAVIOR
s
c
#

Return cast behavior type of this ability.
GetCastAnimation(): GameActivity_t
s
c
#

Return casting animation of this ability.
GetCastPoint(): float
s
c
#

Return cast point of this ability.
GetCastRange(locationVector, targetCDOTA_BaseNPC): int
s
c
#

Return cast range of this ability.
GetChannelAnimation(): GameActivity_t
s
c
#

Return channel animation of this ability.
GetChannelledManaCostPerSecond(levelint): int
s
c
#

Return mana cost at the given level per second while channeling (-1 is current).
GetChannelTime(): float
s
c
#

Return the channel time of this ability.
GetConceptRecipientType(): int
s
c
#

Return who hears speech when this spell is cast.
GetCooldown(levelint): float
s
c
#

Return cooldown of this ability.
GetCustomCastError(): string
s
c
#

Return the error string of a failed command with no target.
GetCustomCastErrorLocation(locationVector): string
s
c
#

Return the error string of a failed command on a location.
GetCustomCastErrorTarget(targetCDOTA_BaseNPC): string
s
c
#

Return the error string of a failed command on a target.
GetGoldCost(levelint): int
s
c
#

Return gold cost at the given level (-1 is current).
GetIntrinsicModifierName(): string
s
c
#

Returns the name of the modifier applied passively by this ability.
GetManaCost(levelint): int
s
c
#

Return mana cost at the given level (-1 is current).
GetPlaybackRateOverride(): float
s
c
#

Return the animation rate of the cast animation.
IsHiddenAbilityCastable(): bool
s
c
#

Returns true if this ability can be used when not on the action panel.
IsHiddenWhenStolen(): bool
s
c
#

Returns true if this ability is hidden when stolen by Spell Steal.
IsRefreshable(): bool
s
c
#

Returns true if this ability is refreshed by Refresher Orb.
IsStealable(): bool
s
c
#

Returns true if this ability can be stolen by Spell Steal.
OnAbilityPhaseInterrupted(): nil
s
c
#

Cast time did not complete successfully.
OnAbilityPhaseStart(): bool
s
c
#

Cast time begins (return true for successful cast).
OnAbilityPinged(playerIdPlayerID, ctrlHeldbool): nil
s
c
#

The ability was pinged.
OnChannelFinish(interruptedbool): nil
s
c
#

Channel finished.
OnChannelThink(intervalfloat): nil
s
c
#

Channeling is taking place.
OnHeroCalculateStatBonus(): nil
s
c
#

Caster (hero only) gained a level, skilled an ability, or received a new stat bonus.
OnHeroDiedNearby(unitCDOTA_BaseNPC, attackerCDOTA_BaseNPC, eventtable): nil
s
c
#

A hero has died in the vicinity (ie Urn), takes table of params.
OnHeroLevelUp(): nil
s
c
#

Caster gained a level.
OnInventoryContentsChanged(): nil
s
c
#

Caster inventory changed.
OnItemEquipped(itemCDOTA_Item): nil
s
c
#

Caster equipped item.
OnOwnerDied(): nil
s
c
#

Caster died.
OnOwnerSpawned(): nil
s
c
#

Caster respawned or spawned for the first time.
OnProjectileHit(targetCDOTA_BaseNPC | nil, locationVector): bool | nil
s
c
#

Projectile has collided with a given target or reached its destination. If 'true` is returned, projectile would be destroyed.
OnProjectileHit_ExtraData(targetCDOTA_BaseNPC | nil, locationVector, extraDatatable): bool | nil
s
c
#

Projectile has collided with a given target or reached its destination. If 'true` is returned, projectile would be destroyed.
OnProjectileHitHandle(targetCDOTA_BaseNPC | nil, locationVector, projectileHandleProjectileID): bool | nil
s
c
#

Projectile has collided with a given target or reached its destination. If 'true` is returned, projectile would be destroyed.
OnProjectileThink(locationVector): nil
s
c
#

Projectile is actively moving.
OnProjectileThink_ExtraData(locationVector, extraDatatable): nil
s
c
#

Projectile is actively moving.
OnProjectileThinkHandle(projectileHandleProjectileID): nil
s
c
#

Projectile is actively moving.
OnSpellStart(): nil
s
c
#

Cast time finished, spell effects begin.
OnStolen(sourceAbilityCDOTABaseAbility): nil
s
c
#

Special behavior when stolen by Spell Steal.
OnToggle(): nil
s
c
#

Ability is toggled on/off.
OnUnStolen(): nil
s
c
#

Special behavior when lost by Spell Steal.
OnUpgrade(): nil
s
c
#

Ability gained a level.
ProcsMagicStick(): bool
s
c
#

Returns true if this ability will generate magic stick charges for nearby enemies.
ResetToggleOnRespawn(): bool
s
c
#

Returns true if this ability should return to the default toggle state when its parent respawns.
SpeakTrigger(): int
s
c
#

Return the type of speech used.