CDOTA_Item_Lua extends CDOTA_Item
s
c
#
CanUnitPickUp(unitCDOTA_BaseNPC): bool
s
c
#

  • unit - Unit trying to pick up the item.
  • Returns true if this item can be picked up by the target unit.
    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 item 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.
    GetCastRange(locationVector, targetCDOTA_BaseNPC): int
    s
    c
    #

    Return cast range 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.
    IsMuted(): bool
    s
    c
    #

    Returns whether this item is muted or not.
    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).
    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.
    OnProjectileThink(locationVector): 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.
    SpeakTrigger(): int
    s
    c
    #

    Return the type of speech used.