Make Player.disableHeroPower a number #411

Closed
opened 2025-11-08 07:01:13 +00:00 by LunarTides · 0 comments
LunarTides commented 2025-11-08 07:01:13 +00:00 (Migrated from github.com)

Add a Player.disableHeroPower() function, and a Player.enableHeroPower() function. When the former is called, increase the number by 1. When the latter is called, decrease the number by 1. Prevent the number from going below 0.

If the number is 0, the player can use their hero power, otherwise they cannot.

This allows multiple cards to block the hero power at the same time.

Add a `Player.disableHeroPower()` function, and a `Player.enableHeroPower()` function. When the former is called, increase the number by 1. When the latter is called, decrease the number by 1. Prevent the number from going below 0. If the number is 0, the player can use their hero power, otherwise they cannot. This allows multiple cards to block the hero power at the same time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LunarTides/Hearthstone.js#411
No description provided.