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 - integer ) void

ArgumentTypeDescription
idnumber - integerGiven item id.

Buy an item by given id.


SellItem

AIHeroClient:SellItem( slot: number - integer ) void

ArgumentTypeDescription
slotnumber - integerGiven item slot.

Sell an item by given slot.


SwapItem

AIHeroClient:SwapItem( from: number - integer, to: number - integer ) 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 - integer ) InventorySlot

ArgumentTypeDescription
slotnumber - integerGiven item slot.

Get inventory slot from given item slot.


FindItem

AIHeroClient:FindItem( id: number - integer ) InventorySlot

ArgumentTypeDescription
idnumber - integerGiven item id.

Get inventory slot from given item id.


FindItemSlot

AIHeroClient:FindItemSlot( id: number - integer ) SpellSlot

ArgumentTypeDescription
idnumber - integerGiven item id.

Get spell slot from given item id.


CanUseItem

AIHeroClient:CanUseItem( id: number - integer ) boolean

ArgumentTypeDescription
idnumber - integerGiven item id.

Returns whether hero can use item with given item id.


GetStatsCollection

AIHeroClient:GetStatsCollection() HeroStatsCollection

Returns HeroStatsCollection