Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable ability revealing during battle #289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

piedpiper358
Copy link
Contributor

Before:

2022-11-07_15-47-59

After:

2022-11-07_15-41-02

@@ -27,7 +27,7 @@ export class MercenariesAbilityRevealedParser implements MercenariesParser {
const isPlayer = controllerId === localPlayer.PlayerId;
const team = isPlayer ? battleState.playerTeam : battleState.opponentTeam;
const abilityOwner = team.getMercenary(ownerEntityId);
if (!cardId) {
if (!cardId || battleState.currentTurn!=0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not totally sure about this change. When an ability swap from one to another (which is not yet supported), we might have to handle it in this parser (along with an "ability_hidden" event maybe).
Also, why hide abilities revealed during the fight in the first place? I'm not too familiar with this use case, why aren't they valid?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When a mercenary's ability swap from one to another, neither the MERCENARIES_ABILITY_REVEALED nor "ability_hidden" event occurs.
A mercenary cannot gain new abilities during battle. MERCENARIES_ABILITY_REVEALED event occurs in-combat when an ability with a select effect is triggered (and this effect card is added to that mercenary's abilities) or if the ability was cast from some treasure such as Prideful Wish or Arcane/Shadow/Fireball/Frost/Fel/Light Volley. But the player can't actually use this mercenary ability, so it shouldn't show up.

(See Tess' ability list, it contains 7 abilities cast by Prideful Wish)

2022-10-05_23-48-58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants