Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Implement refreshing auras declaratively
This is the fifth version of the Aura API We are not deprecating the old system yet, although this is preferrable over attribute-script based modifiers where relevant. Previously, we would create an attribute script for atk/cost for some cards and return a modified value based on the board. For example, Old Murk-Eye would consistently have its attack depend on the number of murlocs on the board. This is a problem for three reasons: - It's ugly in the DSL. You'd have to filter the board with race=Race.MURLOC, exclude self, etc. The new system allows for reuse of selectors. - Attribute scripts are constantly "on". Murk-Eye would then have 3 atk in the hand, Mountain Giant would have its cost reduced on the board, etc. - We currently have to create custom cards for every single buff. That's a huge hassle, and problematic for Kettle.
- Loading branch information
1 parent
97faa53
commit 61f87cf
Showing
4 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters