Laurent - Added Soulblast (10E) + Correction from glitch in R483 (forgot colossus and sardia and doppel target line in sudden impact)

This commit is contained in:
wagic.laurent
2009-06-16 21:48:25 +00:00
parent 7804cbbd64
commit 43bc3f9137
3 changed files with 37 additions and 1 deletions

View File

@@ -1933,6 +1933,21 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
break;
}
case 130369: // Soulblast
{
int damage = 0;
Damageable * target = spell->getNextDamageableTarget();
GameObserver * game = GameObserver::GetInstance();
for (int j = 0; j < card->controller()->game->inPlay->nb_cards; j++){
MTGCardInstance * current = card->controller()->game->inPlay->cards[j];
if (current->hasType("Creature")){
card->controller()->game->putInGraveyard(current);
damage+= current->power;
}
}
game->mLayers->stackLayer()->addDamage(card, target, damage);
break;
}
//--- addon shm---