Refactor & Fix Devotion

Fix Devotion Count example you have Mogis, God of Slaughter(2 B R),
Ashenmoor  Liege(1 B/R B/R B/R), and Rakdos Cackler (B/R) - will be 6
Devotion to Red and Black, since you count the symbol, B/R (hybrid mana)
should return as 1.
This commit is contained in:
Anthony Calosa
2016-06-11 20:39:56 +08:00
parent 4e3543ace7
commit 0f74558892
5 changed files with 133 additions and 395 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ class MTGGameZone {
unsigned int countByType(const string &value);
unsigned int countByCanTarget(TargetChooser * tc);
unsigned int countTotalManaSymbols(TargetChooser * tc, int color);
unsigned int countDevotion(TargetChooser * tc, int color); //devotion for gods
unsigned int countDevotion(TargetChooser * tc, int color1, int color2); //devotion for gods
MTGCardInstance * findByName(string name);
//returns true if one of the cards in the zone has the ability