Skip to content

Retain galvanize when using Argent Hero#4549

Open
Jazzxhands wants to merge 2 commits intomasterfrom
argenthero
Open

Retain galvanize when using Argent Hero#4549
Jazzxhands wants to merge 2 commits intomasterfrom
argenthero

Conversation

@Jazzxhands
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the Argent Hero ability ("argentHeroStep4") to properly retain all unit states—including galvanize—when moving units. Previously, the code only manually handled damage state transfer (removing/adding damaged flags) and completely ignored the galvanize state. The new approach leverages the existing RemovedUnit state-tracking infrastructure used by RemoveUnitService and AddUnitService to preserve all unit states during the move.

Changes:

  • Replaced manual damage-state handling in argentHeroStep4 with state-preserving removeUnits/addUnits overloads that track and restore all unit states (damage + galvanize).
  • Removed the block of code that manually transferred damage between origin and destination unit holders.
  • Simplified the method by ~12 lines while gaining broader state preservation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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