Function cast_kind

Source
pub fn cast_kind(
    game_config: &GameConfig,
    entity: &Entity,
    ability_id: AbilityId,
) -> CastKind
Expand description

Which family ability_id belongs to for entity.

Read off the entity’s own class rather than off the player’s character state, so a party ally and a PvP opponent are classified by the same rule as the hero.