- Fixed Damage All (Ashen Firebeast/ See test)
- Fixed Momir crash if no card with corresponding mana cost exists
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-05-28 09:42:52 +00:00
parent 821a422149
commit 1a21ca454a
7 changed files with 92 additions and 11 deletions
+6 -2
View File
@@ -565,7 +565,12 @@ int AbilityFactory::magicText(int id, Spell * spell, MTGCardInstance * card){
}
if (tc){
if (all){
damageAll(tc,damage);
if (cost){
MTGAbility * a = NEW AAllDamager(id, card, cost, damage, tc,doTap);
game->addObserver(a);
}else{
damageAll(tc,damage);
}
}else{
MTGAbility * a = NEW ADamager(id, card, cost, damage, tc,doTap);
if (multi){
@@ -578,7 +583,6 @@ int AbilityFactory::magicText(int id, Spell * spell, MTGCardInstance * card){
if (multi){
Damageable * target = parseCollateralTarget(card, s);
if (!target) target = spell->getNextDamageableTarget();
if (!target)OutputDebugString("NO TARGET FOR DAMAGE\n");
multi->Add(NEW DamageEvent(card,target,damage));
}else{
game->mLayers->stackLayer()->addDamage(card,spell->getNextDamageableTarget(), damage);