- fix corrupt, shepherd of rot, imaginary pet, reclusive wight, rhox meditant, immaculate magistrate, wellwisher
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-30 14:16:04 +00:00
parent 9e498a0fb5
commit aad25e8fb0
17 changed files with 247 additions and 49 deletions

View File

@@ -262,10 +262,12 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
if (card->hasType("sorcery") || card->hasType("instant")) oneShot = 1;
if (i == 3) oneShot = 1;
if (a->oneShot) oneShot = 1;
Damageable * _target = spell->getNextDamageableTarget();
if (!_target) _target = target;
switch(i){
case 0: result = NEW ALord(id, card, lordTargets, lordIncludeSelf, a); break;
case 1: result = NEW AForeach(id, card, target,lordTargets, lordIncludeSelf, a); break;
case 2: result = NEW AAsLongAs(id, card, lordTargets, lordIncludeSelf, a); break;
case 1: result = NEW AForeach(id, card, _target,lordTargets, lordIncludeSelf, a); break;
case 2: result = NEW AAsLongAs(id, card, _target,lordTargets, lordIncludeSelf, a); break;
case 3: result = NEW ALord(id, card, lordTargets, lordIncludeSelf, a); break;
default: result = NULL;
}