CDOTABaseAbility extends CBaseEntity
s
c
#
CanAbilityBeUpgraded(): bool
s
c
#
CastAbility(): bool
s
c
#
ContinueCasting(): bool
s
c
#
CreateVisibilityNode(locationVector, radiusfloat, durationfloat): nil
s
c
#
DecrementModifierRefCount(): nil
s
c
#
EndChannel(interruptedbool): nil
s
c
#
EndCooldown(): nil
s
c
#

Clear the cooldown remaining on this ability.
GetAbilityDamage(): int
s
c
#
GetAbilityDamageType(): DAMAGE_TYPES
s
c
#
GetAbilityIndex(): int
s
c
#
GetAbilityKeyValues(): table
s
c
#

Gets the key values definition for this ability.
GetAbilityName(): string
s
c
#

Returns the name of this ability.
GetAbilityTargetFlags(): DOTA_UNIT_TARGET_FLAGS
s
c
#
GetAbilityTargetTeam(): DOTA_UNIT_TARGET_TEAM
s
c
#
GetAbilityTargetType(): DOTA_UNIT_TARGET_TYPE
s
c
#
GetAbilityType(): int
s
c
#
GetAnimationIgnoresModelScale(): bool
s
c
#
GetAOERadius(): int
s
c
#
GetAssociatedPrimaryAbilities(): string
s
c
#
GetAssociatedSecondaryAbilities(): string
s
c
#
GetAutoCastState(): bool
s
c
#
GetBackswingTime(): float
s
c
#
GetBehavior(): int
s
c
#
GetCaster(): CDOTA_BaseNPC
s
c
#
GetCastPoint(): float
s
c
#
GetCastRange(locationVector, targetCDOTA_BaseNPC): int
s
c
#

Gets the cast range of the ability.
GetChannelledManaCostPerSecond(levelint): int
s
c
#
GetChannelStartTime(): float
s
c
#
GetChannelTime(): float
s
c
#
GetCloneSource(): CDOTA_BaseNPC | nil
s
c
#
GetConceptRecipientType(): int
s
c
#
GetCooldown(levelint): float
s
c
#

Get the cooldown duration for this ability at a given level, not the amount of cooldown actually left.
GetCooldownTime(): float
s
c
#
GetCooldownTimeRemaining(): float
s
c
#
GetCursorPosition(): Vector
s
c
#
GetCursorTarget(): CDOTA_BaseNPC | nil
s
c
#
GetCursorTargetingNothing(): bool
s
c
#
GetDuration(): float
s
c
#
GetEffectiveCooldown(levelint): float
s
c
#
GetGoldCost(levelint): int
s
c
#
GetGoldCostForUpgrade(levelint): int
s
c
#
GetHeroLevelRequiredToUpgrade(): int
s
c
#
GetIntrinsicModifierName(): string
s
c
#
GetLevel(): int
s
c
#

Get the current level of the ability.
GetLevelSpecialValueFor(namestring, levelint): float
s
c
#
GetManaCost(levelint): int
s
c
#
GetMaxLevel(): int
s
c
#
GetModifierValue(): float
s
c
#
GetModifierValueBonus(): float
s
c
#
GetPlaybackRateOverride(): float
s
c
#
GetSharedCooldownName(): string
s
c
#
GetSpecialValueFor(namestring): float
s
c
#

Gets a value from this ability's special value block for its current level.
GetStolenActivityModifier(): string
s
c
#
GetToggleState(): bool
s
c
#
GetUpgradeRecommended(): bool
s
c
#
HeroXPChange(xpfloat): bool
s
c
#
IncrementModifierRefCount(): nil
s
c
#
IsActivated(): bool
s
c
#
IsAttributeBonus(): bool
s
c
#
IsChanneling(): bool
s
c
#

Returns whether the ability is currently channeling.
IsCooldownReady(): bool
s
c
#
IsCosmetic(entityCBaseEntity): bool
s
c
#
IsFullyCastable(): bool
s
c
#

Returns whether the ability can be cast.
IsHidden(): bool
s
c
#
IsHiddenAsSecondaryAbility(): bool
s
c
#
IsHiddenWhenStolen(): bool
s
c
#
IsInAbilityPhase(): bool
s
c
#

Returns whether the ability is currently casting.
IsItem(): bool
s
c
#
IsOwnersGoldEnough(issuerPlayerIdPlayerID): bool
s
c
#
IsOwnersGoldEnoughForUpgrade(): bool
s
c
#
IsOwnersManaEnough(): bool
s
c
#
IsPassive(): bool
s
c
#
IsRefreshable(): bool
s
c
#
IsSharedWithTeammates(): bool
s
c
#
IsStealable(): bool
s
c
#
IsStolen(): bool
s
c
#
IsToggle(): bool
s
c
#
IsTrained(): bool
s
c
#
MarkAbilityButtonDirty(): nil
s
c
#

Mark the ability button for this ability as needing a refresh.
NumModifiersUsingAbility(): int
s
c
#
OnAbilityPhaseInterrupted(): nil
s
c
#
OnAbilityPhaseStart(): bool
s
c
#
OnAbilityPinged(playerIdPlayerID, ctrlHeldbool): nil
s
c
#
OnChannelFinish(interruptedbool): nil
s
c
#
OnChannelThink(intervalfloat): nil
s
c
#
OnHeroCalculateStatBonus(): nil
s
c
#
OnHeroLevelUp(): nil
s
c
#
OnOwnerDied(): nil
s
c
#
OnOwnerSpawned(): nil
s
c
#
OnSpellStart(): nil
s
c
#
OnToggle(): nil
s
c
#
OnUpgrade(): nil
s
c
#
PayGoldCost(): nil
s
c
#
PayGoldCostForUpgrade(): nil
s
c
#
PayManaCost(): nil
s
c
#
PlaysDefaultAnimWhenStolen(): bool
s
c
#
ProcsMagicStick(): bool
s
c
#
RefCountsModifiers(): bool
s
c
#
RefreshCharges(): nil
s
c
#
RefundManaCost(): nil
s
c
#
ResetToggleOnRespawn(): bool
s
c
#
SetAbilityIndex(indexint): nil
s
c
#
SetActivated(activatedbool): nil
s
c
#
SetChanneling(channelingbool): nil
s
c
#
SetFrozenCooldown(frozenCooldownbool): nil
s
c
#
SetHidden(hiddenbool): nil
s
c
#
SetInAbilityPhase(inAbilityPhasebool): nil
s
c
#
SetLevel(levelint): nil
s
c
#

Sets the level of this ability.
SetOverrideCastPoint(castPointfloat): nil
s
c
#
SetRefCountsModifiers(refCountsbool): nil
s
c
#
SetStealable(stealablebool): nil
s
c
#
SetStolen(stolenbool): nil
s
c
#
SetUpgradeRecommended(upgradeRecommendedbool): nil
s
c
#
ShouldUseResources(): bool
s
c
#
SpeakAbilityConcept(conceptint): nil
s
c
#
SpeakTrigger(): unknown
s
c
#
StartCooldown(cooldownfloat): nil
s
c
#
ToggleAbility(): nil
s
c
#
ToggleAutoCast(): nil
s
c
#
UpgradeAbility(supressSpeechbool): nil
s
c
#
UseResources(manabool, goldbool, cooldownbool): nil
s
c
#