Skip to content

Commit

Permalink
chore: drop PlayReq
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Apr 12, 2024
1 parent 1083692 commit 22341f4
Showing 1 changed file with 0 additions and 137 deletions.
137 changes: 0 additions & 137 deletions hearthstone/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -1319,143 +1319,6 @@ class Faction(IntEnum):
NEUTRAL = 3


class PlayReq(IntEnum):
"""PlayErrors.ErrorType"""

INVALID = -1
REQ_MINION_TARGET = 1
REQ_FRIENDLY_TARGET = 2
REQ_ENEMY_TARGET = 3
REQ_DAMAGED_TARGET = 4
REQ_MAX_SECRETS = 5
REQ_FROZEN_TARGET = 6
REQ_CHARGE_TARGET = 7
REQ_TARGET_MAX_ATTACK = 8
REQ_NONSELF_TARGET = 9
REQ_TARGET_WITH_RACE = 10
REQ_TARGET_TO_PLAY = 11
REQ_NUM_MINION_SLOTS = 12
REQ_WEAPON_EQUIPPED = 13
REQ_ENOUGH_MANA = 14
REQ_YOUR_TURN = 15
REQ_NONSTEALTH_ENEMY_TARGET = 16
REQ_HERO_TARGET = 17
REQ_SECRET_ZONE_CAP = 18
REQ_MINION_CAP_IF_TARGET_AVAILABLE = 19
REQ_MINION_CAP = 20
REQ_TARGET_ATTACKED_THIS_TURN = 21
REQ_TARGET_IF_AVAILABLE = 22
REQ_MINIMUM_ENEMY_MINIONS = 23
REQ_TARGET_FOR_COMBO = 24
REQ_NOT_EXHAUSTED_ACTIVATE = 25
REQ_UNIQUE_SECRET_OR_QUEST = 26
REQ_TARGET_TAUNTER = 27
REQ_CAN_BE_ATTACKED = 28
REQ_ACTION_PWR_IS_MASTER_PWR = 29
REQ_TARGET_MAGNET = 30
REQ_ATTACK_GREATER_THAN_0 = 31
REQ_ATTACKER_NOT_FROZEN = 32
REQ_HERO_OR_MINION_TARGET = 33
REQ_CAN_BE_TARGETED_BY_SPELLS = 34
REQ_SUBCARD_IS_PLAYABLE = 35
REQ_TARGET_FOR_NO_COMBO = 36
REQ_NOT_MINION_JUST_PLAYED = 37
REQ_NOT_EXHAUSTED_HERO_POWER = 38
REQ_CAN_BE_TARGETED_BY_OPPONENTS = 39
REQ_ATTACKER_CAN_ATTACK = 40
REQ_TARGET_MIN_ATTACK = 41
REQ_CAN_BE_TARGETED_BY_HERO_POWERS = 42
REQ_ENEMY_TARGET_NOT_IMMUNE = 43
REQ_ALL_BASIC_TOTEMS_NOT_IN_PLAY = 44
REQ_MINIMUM_TOTAL_MINIONS = 45
REQ_MUST_TARGET_TAUNTER = 46
REQ_UNDAMAGED_TARGET = 47
REQ_CAN_BE_TARGETED_BY_BATTLECRIES = 48
REQ_STEADY_SHOT = 49
REQ_MINION_OR_ENEMY_HERO = 50
REQ_TARGET_IF_AVAILABLE_AND_DRAGON_IN_HAND = 51
REQ_LEGENDARY_TARGET = 52
REQ_FRIENDLY_MINION_DIED_THIS_TURN = 53
REQ_FRIENDLY_MINION_DIED_THIS_GAME = 54
REQ_ENEMY_WEAPON_EQUIPPED = 55
REQ_TARGET_IF_AVAILABLE_AND_MINIMUM_FRIENDLY_MINIONS = 56
REQ_TARGET_WITH_BATTLECRY = 57
REQ_TARGET_WITH_DEATHRATTLE = 58
REQ_TARGET_IF_AVAILABLE_AND_MINIMUM_FRIENDLY_SECRETS = 59
REQ_SECRET_ZONE_CAP_FOR_NON_SECRET = 60
REQ_TARGET_EXACT_COST = 61
REQ_STEALTHED_TARGET = 62
REQ_MINION_SLOT_OR_MANA_CRYSTAL_SLOT = 63
REQ_MAX_QUESTS = 64
REQ_TARGET_IF_AVAILABE_AND_ELEMENTAL_PLAYED_LAST_TURN = 65
REQ_TARGET_NOT_VAMPIRE = 66
REQ_TARGET_NOT_DAMAGEABLE_ONLY_BY_WEAPONS = 67
REQ_NOT_DISABLED_HERO_POWER = 68
REQ_MUST_PLAY_OTHER_CARD_FIRST = 69
REQ_HAND_NOT_FULL = 70
REQ_TARGET_IF_AVAILABLE_AND_NO_3_COST_CARD_IN_DECK = 71
REQ_CAN_BE_TARGETED_BY_COMBOS = 72
REQ_CANNOT_PLAY_THIS = 73
REQ_FRIENDLY_MINIONS_OF_RACE_DIED_THIS_GAME = 74
REQ_DRAG_TO_PLAY_PRE29933 = 75 # This value changes between patches 27845 and 29933
REQ_OPPONENT_PLAYED_CARDS_THIS_GAME = 77
REQ_LITERALLY_UNPLAYABLE = 78
REQ_TARGET_IF_AVAILABLE_AND_HERO_HAS_ATTACK = 79
REQ_FRIENDLY_MINION_OF_RACE_DIED_THIS_TURN = 80
REQ_TARGET_IF_AVAILABLE_AND_MINIMUM_SPELLS_PLAYED_THIS_TURN = 81
REQ_FRIENDLY_MINION_OF_RACE_IN_HAND = 82
REQ_DRAG_TO_PLAY_PRE31761 = 83 # This value changes between patches 31532 and 31761
REQ_FRIENDLY_DEATHRATTLE_MINION_DIED_THIS_GAME = 86
REQ_FRIENDLY_REBORN_MINION_DIED_THIS_GAME = 89
REQ_MINION_DIED_THIS_GAME = 90
REQ_BOARD_NOT_COMPLETELY_FULL = 92
REQ_TARGET_IF_AVAILABLE_AND_HAS_OVERLOADED_MANA = 93
REQ_TARGET_IF_AVAILABLE_AND_HERO_ATTACKED_THIS_TURN = 94
REQ_TARGET_IF_AVAILABLE_AND_DRAWN_THIS_TURN = 95
REQ_TARGET_IF_AVAILABLE_AND_NOT_DRAWN_THIS_TURN = 96
REQ_TARGET_NON_TRIPLED_MINION = 97
REQ_BOUGHT_MINION_THIS_TURN = 98
REQ_SOLD_MINION_THIS_TURN = 99
REQ_TARGET_IF_AVAILABLE_AND_PLAYER_HEALTH_CHANGED_THIS_TURN = 100
REQ_TARGET_IF_AVAILABLE_AND_SOUL_FRAGMENT_IN_DECK = 101
REQ_DAMAGED_TARGET_UNLESS_COMBO = 102
REQ_NOT_MINION_DORMANT = 103
REQ_TARGET_NOT_UNTOUCHABLE = 104
REQ_TARGET_IF_AVAILABLE_AND_BOUGHT_RACE_THIS_TURN = 105
REQ_TARGET_IF_AVAILABLE_AND_SOLD_RACE_THIS_TURN = 106
REQ_NOT_IN_COOLDOWN = 107
REQ_TARGET_IS_MERC = 108
REQ_TARGET_IS_NON_MERC = 109
REQ_TWO_OF_A_KIND = 110
REQ_HAS_OVERLOADED_MANA = 111
REQ_LETTUCE_ABILITY_CANNOT_TARGET_OWNER = 112
REQ_TARGET_NOT_HAVE_TAG = 116
REQ_TARGET_MUST_HAVE_TAG = 117
REQ_TRADEABLE = 119
REQ_NOT_LEGENDARY_TARGET = 123
REQ_MINIMUM_TAVERN_TIER_LEVEL_TO_PLAY = 128
REQ_CARD_TAVERN_TIER_LEVEL_TO_PLAY = 129
REQ_NOT_EXHAUSTED_LOCATION = 130
REQ_LOCATION_TARGET = 131
REQ_TARGET_SILVER_HAND_RECRUIT = 132
REQ_MINIMUM_CORPSES = 133
REQ_LOCATION_OR_MINION_TARGET = 134
REQ_CAN_BE_TARGETED_BY_LOCATIONS = 135
REQ_FORGE = 136
REQ_HAS_PLAYED_SPELL_THIS_GAME = 137
REQ_TARGET_IS_NON_TITAN = 141
REQ_TARGET_EXACT_ATTACK = 143
REQ_DRAG_TO_PLAY = 999

# Renamed
REQ_ENCHANTED_TARGET = REQ_MAX_SECRETS
REQ_ENTIRE_ENTOURAGE_NOT_IN_PLAY = REQ_ALL_BASIC_TOTEMS_NOT_IN_PLAY
REQ_UNIQUE_SECRET = REQ_UNIQUE_SECRET_OR_QUEST
REQ_SECRET_CAP = REQ_SECRET_ZONE_CAP
REQ_SECRET_CAP_FOR_NON_SECRET = REQ_SECRET_ZONE_CAP_FOR_NON_SECRET
REQ_TARGET_NOT_DORMANT = REQ_TARGET_NOT_UNTOUCHABLE


class Race(IntEnum):
"""TAG_RACE"""

Expand Down

0 comments on commit 22341f4

Please sign in to comment.