fixed a bug where cards with vanishing (new vanishing) were given "vanishing as a menu item during combat.

This commit is contained in:
omegablast2002@yahoo.com
2011-03-22 03:41:45 +00:00
parent cb1b1d3054
commit 65f2706f1e
3 changed files with 6 additions and 5 deletions
+4 -2
View File
@@ -2792,8 +2792,10 @@ APreventDamageTypesUEOT::~APreventDamageTypesUEOT()
//AVanishing creature also fading
AVanishing::AVanishing(int _id, MTGCardInstance * card, ManaCost * _cost, int _tap, int restrictions, int amount, string counterName) :
ActivatedAbility(_id, card, _cost, restrictions, _tap),amount(amount),counterName(counterName)
MTGAbility(_id, source, target),amount(amount),counterName(counterName)
{
target = card;
source = card;
next = 0;
for(int i = 0;i< amount;i++)
source->counters->addCounter(counterName.c_str(),0,0);
@@ -2835,7 +2837,7 @@ void AVanishing::Update(float dt)
}
}
}
ActivatedAbility::Update(dt);
MTGAbility::Update(dt);
}
int AVanishing::resolve()