Skip to main content

AIHeroClient : AIBaseClient

'Inherited from GameObject , AIBaseClient and AttackableUnit class.'

Properties

canShop: boolean

summonerLevel: number

avatarClient: AvatarClient

Functions

CanLevelSpellSlot

AIHeroClient:CanLevelSpellSlot(slot: SpellSlot) boolean

ArgumentTypeDescription
slotSpellSlotGiven slot.

Returns whether hero can level up a spell in given SpellSlot or not.


CanEvolveSpellSlot

AIHeroClient:CanEvolveSpellSlot(slot: SpellSlot) boolean

ArgumentTypeDescription
slotSpellSlotGiven slot.

Returns whether hero can evolve a spell in given SpellSlot or not.


BuyItem

AIHeroClient:BuyItem(id: number) void

ArgumentTypeDescription
idnumber - integerGiven item id.

Buy an item by given id.


SellItem

AIHeroClient:SellItem(slot: number) void

ArgumentTypeDescription
slotnumber - integerGiven item slot.

Sell an item by given slot.


SwapItem

AIHeroClient:SwapItem(from: number, to: number) void

ArgumentTypeDescription
fromnumber - integerMove from this slot.
tonumber - integerMove to this slot.

Swap an item from one slot to another.


GetItem

AIHeroClient:GetItem(slot: number) InventorySlot

ArgumentTypeDescription
slotnumber - integerGiven item slot.

Get inventory slot from given item slot.


FindItem

AIHeroClient:FindItem(id: number) InventorySlot

ArgumentTypeDescription
idnumber - integerGiven item id.

Get inventory slot from given item id.


FindItemSlot

AIHeroClient:FindItemSlot(id: number) SpellSlot

ArgumentTypeDescription
idnumber - integerGiven item id.

Get spell slot from given item id.


CanUseItem

AIHeroClient:CanUseItem(id: number) boolean

ArgumentTypeDescription
idnumber - integerGiven item id.

Returns whether hero can use item with given item id.


GetStatsCollection

AIHeroClient:GetStatsCollection() HeroStatsCollection

Returns HeroStatsCollection