-close issue 171 (remove Soul net from the game)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-12-13 10:21:33 +00:00
parent ee4e9f2262
commit cc46be7fbe
4 changed files with 8 additions and 52 deletions

View File

@@ -3500,45 +3500,6 @@ class AIslandSanctuary:public MTGAbility{
};
//Soul Net
class ASoulNet:public ActivatedAbility{
public:
PutInGraveyard * latest;
PutInGraveyard * newDead;
ASoulNet(int _id, MTGCardInstance * card):ActivatedAbility(_id, card,0,0,0){
int _cost[] = {Constants::MTG_COLOR_ARTIFACT, 1};
cost = NEW ManaCost(_cost,1);
latest = ((PutInGraveyard *) GameObserver::GetInstance()->mLayers->stackLayer()->getPrevious(NULL,ACTION_PUTINGRAVEYARD,RESOLVED_OK));
newDead = latest;
}
int isReactingToClick(MTGCardInstance * card, ManaCost * mana = NULL){
newDead = ((PutInGraveyard *) GameObserver::GetInstance()->mLayers->stackLayer()->getPrevious(NULL,ACTION_PUTINGRAVEYARD,RESOLVED_OK));
if (newDead && newDead != latest && newDead->card->isCreature())
return ActivatedAbility::isReactingToClick(card,mana);
return 0;
}
int resolve(){
latest = newDead;
source->controller()->life++;
return 1;
}
virtual ostream& toString(ostream& out) const
{
out << "ASoulNet ::: latest : " << latest
<< " ; newDead : " << newDead
<< " (";
return ActivatedAbility::toString(out) << ")";
}
ASoulNet * clone() const{
ASoulNet * a = NEW ASoulNet(*this);
a->isClone = 1;
return a;
}
};
//Stasis
class AStasis:public ActivatedAbility{
public: