Please update your rules folder

- "Manapool empties at the end of each step" becomes an ability, and was moved into the external rules file. "removemana(*) to remove all, removemana(*{G}) to remove all green, removemana(*{G}{B}{R}) to remove all green black red, removemana({G}{G}{B}{U}) (no "*") to remove a specific value.
- Added a possibility to make abilities non interruptible. With little work, this could be added to the parser if needed. Please use with care, let's discuss what is an acceptable usage of this now functionality, if needed.
This commit is contained in:
wagic.the.homebrew
2011-05-03 11:59:27 +00:00
parent d8147a0156
commit 0b9ff076e6
13 changed files with 206 additions and 41 deletions

View File

@@ -59,6 +59,7 @@ protected:
Player * initPlayer(int playerId);
MTGDeck * buildDeck(int playerId);
int strToGameMode(string s);
bool postUpdateInitDone;
public:
enum
{
@@ -86,6 +87,8 @@ public:
bool canChooseDeck(); //True if the players get to select their decks, false if the decks are automatically generated by the mode
void addExtraRules();
void initGame();
//second part of the initialization, needs to happen after the first update call
void postUpdateInit();
void cleanup();
vector<string> extraRules;
RulesState initState;