Erwan
-fix issue 219 (Tokens rarity)
This commit is contained in:
@@ -65,6 +65,7 @@ int MTGCard::init(){
|
|||||||
magicText = "";
|
magicText = "";
|
||||||
spellTargetType = "";
|
spellTargetType = "";
|
||||||
alias = 0;
|
alias = 0;
|
||||||
|
rarity = Constants::RARITY_C;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ Token::Token(string _name, MTGCardInstance * source, int _power, int _toughness)
|
|||||||
toughness = _toughness;
|
toughness = _toughness;
|
||||||
life=toughness;
|
life=toughness;
|
||||||
lifeOrig = life;
|
lifeOrig = life;
|
||||||
|
rarity = Constants::RARITY_T;
|
||||||
name = _name;
|
name = _name;
|
||||||
setMTGId(- source->getMTGId());
|
setMTGId(- source->getMTGId());
|
||||||
setId = source->setId;
|
setId = source->setId;
|
||||||
|
|||||||
Reference in New Issue
Block a user