pub fn stack_has_all_abilities(
    state: &AbstractState,
    index: usize,
    abilities: AbilitySet
) -> bool