Erwan
- A few card fixes
This commit is contained in:
@@ -55,6 +55,8 @@ void Credits::compute(Player * _p1, Player * _p2, GameApp * _app){
|
||||
}
|
||||
|
||||
int diff = p1->life - p2->life;
|
||||
if (diff < 0) diff = 0;
|
||||
if (diff > 500) diff = 500;
|
||||
if (diff){
|
||||
CreditBonus * b = NEW CreditBonus(diff, _("Life Delta Bonus"));
|
||||
bonus.push_back(b);
|
||||
@@ -65,6 +67,11 @@ void Credits::compute(Player * _p1, Player * _p2, GameApp * _app){
|
||||
bonus.push_back(b);
|
||||
}
|
||||
|
||||
if ((p2->game->library->nb_cards == 0) && p1->game->library->nb_cards) {
|
||||
CreditBonus * b = NEW CreditBonus(p1->game->library->nb_cards * 3, _("Miller Bonus"));
|
||||
bonus.push_back(b);
|
||||
}
|
||||
|
||||
if (g->turn < 15) {
|
||||
CreditBonus * b = NEW CreditBonus((20 - g->turn)*17, _("'Fast and Furious' Bonus"));
|
||||
bonus.push_back(b);
|
||||
|
||||
@@ -1518,7 +1518,7 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
|
||||
case 130553:// Beacon of Immortality
|
||||
{
|
||||
Player * player = spell->getNextPlayerTarget();
|
||||
player->life+=player->life;
|
||||
if (player->life < (INT_MAX / 4) ) player->life += player->life;
|
||||
zones->putInZone(card,zones->stack,zones->library);
|
||||
zones->library->shuffle();
|
||||
break;
|
||||
|
||||
@@ -276,6 +276,7 @@ MTGCardInstance * MTGCardInstance::changeController(Player * newController){
|
||||
Player * originalOwner = controller();
|
||||
if (originalOwner == newController) return 0;
|
||||
MTGCardInstance * copy = originalOwner->game->putInZone(this, originalOwner->game->inPlay, newController->game->inPlay);
|
||||
copy->summoningSickness = 1;
|
||||
return copy;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user