# CDOTA_Ability_Lua

extends CDOTABaseAbility

Function Description Client
int CastFilterResult() Determine whether an issued command with no target is valid. ✔️
int CastFilterResultLocation(vLocation) (Vector vLocation) Determine whether an issued command on a location is valid. ✔️
int CastFilterResultTarget(hTarget) (HSCRIPT hTarget) Determine whether an issued command on a target is valid. ✔️
float GetAOERadius() Controls the size of the AOE casting cursor. ✔️
string GetAssociatedPrimaryAbilities() Returns abilities that are stolen simultaneously, or otherwise related in functionality.
string GetAssociatedSecondaryAbilities() Returns other abilities that are stolen simultaneously, or otherwise related in functionality. Generally hidden abilities.
int GetBehavior() Return cast behavior type of this ability. ✔️
int GetCastAnimation() Return casting animation of this ability.
float GetCastPoint() Return cast point of this ability. ✔️
int GetCastRange(vLocation, hTarget) Return cast range of this ability. ✔️
int GetChannelAnimation() Return channel animation of this ability.
float GetChannelTime() Return the channel time of this ability. ✔️
int GetChannelledManaCostPerSecond(iLevel) Return mana cost at the given level per second while channeling (-1 is current). ✔️
int GetConceptRecipientType() Return who hears speech when this spell is cast.
float GetCooldown(iLevel) Return cooldown of this ability. ✔️
string GetCustomCastError() Return the error string of a failed command with no target. ✔️
string GetCustomCastErrorLocation(vLocation) (Vector vLocation) Return the error string of a failed command on a location. ✔️
string GetCustomCastErrorTarget(hTarget) (HSCRIPT hTarget) Return the error string of a failed command on a target. ✔️
int GetGoldCost(iLevel) Return gold cost at the given level (-1 is current). ✔️
string GetIntrinsicModifierName() 返回此技能被动给予的修饰器的名称
int GetManaCost(iLevel) Return mana cost at the given level (-1 is current). ✔️
float GetPlaybackRateOverride() Return the animation rate of the cast animation.
bool IsHiddenAbilityCastable() Returns true if this ability can be used when not on the action panel.
bool IsHiddenWhenStolen() Returns true if this ability is hidden when stolen by Spell Steal.
bool IsRefreshable() Returns true if this ability is refreshed by Refresher Orb.
bool IsStealable() Returns true if this ability can be stolen by Spell Steal.
void OnAbilityPhaseInterrupted() Cast time did not complete successfully.
bool OnAbilityPhaseStart() Cast time begins (return true for successful cast).
void OnAbilityPinged(nPlayerID, bCtrlHeld) The ability was pinged (nPlayerID, bCtrlHeld).
void OnChannelFinish(bInterrupted) (bool bInterrupted) Channel finished.
void OnChannelThink(flInterval) (float flInterval) Channeling is taking place.
void OnHeroCalculateStatBonus() Caster (hero only) gained a level, skilled an ability, or received a new stat bonus.
void OnHeroDiedNearby(unit, attacker, table) A hero has died in the vicinity (ie Urn), takes table of params.
void OnHeroLevelUp() Caster gained a level.
void OnInventoryContentsChanged() Caster inventory changed.
void OnItemEquipped(hItem) ( HSCRIPT hItem ) Caster equipped item.
void OnOwnerDied() Caster died.
void OnOwnerSpawned() Caster respawned or spawned for the first time.
bool OnProjectileHit(hTarget, vLocation) (HSCRIPT hTarget, Vector vLocation) Projectile has collided with a given target or reached its destination (target is invalid).
bool OnProjectileHitHandle(hTarget, vLocation, iProjectileHandle) (HSCRIPT hTarget, Vector vLocation, int nHandle) Projectile has collided with a given target or reached its destination (target is invalid).
bool OnProjectileHit_ExtraData(hTarget, vLocation, ExtraData) 当投射物命中目标或者到达最远距离(此时hTarget为无效值)
void OnProjectileThink(vLocation) (Vector vLocation) Projectile is actively moving.
void OnProjectileThinkHandle(iProjectileHandle) (int nProjectileHandle) Projectile is actively moving.
void OnProjectileThink_ExtraData(vLocation, table) (Vector vLocation, table kv ) Projectile is actively moving.
void OnSpellStart() Cast time finished, spell effects begin.
void OnStolen(hSourceAbility) ( HSCRIPT hAbility ) Special behavior when stolen by Spell Steal.
void OnToggle() Ability is toggled on/off.
void OnUnStolen() Special behavior when lost by Spell Steal.
void OnUpgrade() Ability gained a level.
bool ProcsMagicStick() Returns true if this ability will generate magic stick charges for nearby enemies.
bool ResetToggleOnRespawn() Returns true if this ability should return to the default toggle state when its parent respawns.
int SpeakTrigger() Return the type of speech used.