Champions, Abilities and Skins¶
-
class
arez.
Champion
[source]¶ Represents a Champion and it’s information.
You can find these on the
CacheEntry.champions
attribute, as well as various other objects returned from the API.Inherits from
CacheObject
.Note
An object of this class can be
False
in a boolean context, if it’s internal state is deemed incomplete or corrupted. For the internal state to be considered valid, there has to be exactly 16 cards and 3 talents assigned to the champion. If you don’t plan on accessing / processing those, you can use theis not None
in the check instead. Examples:if champion: # champion exists and is valid if not champion: # champion doesn't exist, or exists in an invalid state if champion is not None: # champion exists but might be invalid if champion is None: # champion doesn't exist
-
role
¶ The champion’s role.
- Type
Literal[“Front Line”, “Support”, “Damage”, “Flank”]
-
abilities
¶ An object that lets you iterate over all abilities this champion has.
Use
list(...)
to get a list instead.Note
Some champions may have more than 5 abilities - this will happen if one of their abilities allows switching other abilities between their states.
-
talents
¶ An object that lets you iterate over all talents this champion has.
Use
list(...)
to get a list instead.
-
cards
¶ An iterator that lets you iterate over all cards this champion has.
Use
list(...)
to get a list instead.
-
skins
¶ An object that lets you iterate over all skins this champion has.
Use
list(...)
to get a list instead.
-
-
class
arez.
Ability
[source]¶ Represents a Champion’s Ability.
You can find these on the
Champion.abilities
attribute.Inherits from
CacheObject
.-
type
¶ The type of the ability (currently only damage type).
- Type
-
-
class
arez.
Skin
[source]¶ Represents a Champion’s Skin and it’s information.
You can get these from the
Champion.get_skins
method, as well as find on various other objects returned from the API.Inherits from
CacheObject
.