Erwan
-Kjeldoran_frostbeast fix i167 by salmelo
This commit is contained in:
@@ -20799,8 +20799,8 @@ power=3
|
|||||||
toughness=1
|
toughness=1
|
||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
|
alias=2732
|
||||||
name=Kjeldoran Frostbeast
|
name=Kjeldoran Frostbeast
|
||||||
alias=1267
|
|
||||||
text=At end of combat, destroy all creatures blocking or blocked by Kjeldoran Frostbeast.
|
text=At end of combat, destroy all creatures blocking or blocked by Kjeldoran Frostbeast.
|
||||||
mana={3}{G}{W}
|
mana={3}{G}{W}
|
||||||
type=Creature
|
type=Creature
|
||||||
|
|||||||
@@ -272,6 +272,7 @@ keldon_warlord.txt
|
|||||||
keldon_warlord2.txt
|
keldon_warlord2.txt
|
||||||
kird_ape.txt
|
kird_ape.txt
|
||||||
kjeldoran_frostbeast1.txt
|
kjeldoran_frostbeast1.txt
|
||||||
|
kjeldoran_frostbeast2_i167.txt
|
||||||
knight_captain_of_eos_i294.txt
|
knight_captain_of_eos_i294.txt
|
||||||
knight_captain_of_eos_i294_2.txt
|
knight_captain_of_eos_i294_2.txt
|
||||||
kormus_bell_i301.txt
|
kormus_bell_i301.txt
|
||||||
|
|||||||
@@ -2664,7 +2664,6 @@ class AFarmstead:public ActivatedAbility{
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//1112 Howling Mine
|
//1112 Howling Mine
|
||||||
class AHowlingMine:public MTGAbility{
|
class AHowlingMine:public MTGAbility{
|
||||||
public:
|
public:
|
||||||
@@ -2688,6 +2687,55 @@ class AHowlingMine:public MTGAbility{
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//Kjeldoran Frostbeast
|
||||||
|
class AKjeldoranFrostbeast:public MTGAbility{
|
||||||
|
public:
|
||||||
|
MTGCardInstance * opponents[20];
|
||||||
|
int nbOpponents;
|
||||||
|
AKjeldoranFrostbeast(int _id, MTGCardInstance * _source):MTGAbility(_id, _source){
|
||||||
|
nbOpponents = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Update(float dt){
|
||||||
|
if (newPhase != currentPhase){
|
||||||
|
if( newPhase == Constants::MTG_PHASE_COMBATEND){
|
||||||
|
nbOpponents = 0;
|
||||||
|
MTGCardInstance * opponent = source->getNextOpponent();
|
||||||
|
while (opponent && !opponent->hasSubtype("wall")){
|
||||||
|
opponents[nbOpponents] = opponent;
|
||||||
|
nbOpponents ++;
|
||||||
|
opponent = source->getNextOpponent(opponent);
|
||||||
|
}
|
||||||
|
if (source->isInPlay()) {
|
||||||
|
for (int i = 0; i < nbOpponents ; i++){
|
||||||
|
opponents[i]->destroy();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int testDestroy(){
|
||||||
|
if(!game->isInPlay(source) && currentPhase != Constants::MTG_PHASE_UNTAP){
|
||||||
|
return 0;
|
||||||
|
}else{
|
||||||
|
return MTGAbility::testDestroy();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual ostream& toString(ostream& out) const
|
||||||
|
{
|
||||||
|
out << "AKjeldoranFrostbeast ::: opponents : " << opponents
|
||||||
|
<< " ; nbOpponents : " << nbOpponents
|
||||||
|
<< " (";
|
||||||
|
return MTGAbility::toString(out) << ")";
|
||||||
|
}
|
||||||
|
AKjeldoranFrostbeast * clone() const{
|
||||||
|
AKjeldoranFrostbeast * a = NEW AKjeldoranFrostbeast(*this);
|
||||||
|
a->isClone = 1;
|
||||||
|
return a;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
//Living Artifact
|
//Living Artifact
|
||||||
class ALivingArtifact:public MTGAbility{
|
class ALivingArtifact:public MTGAbility{
|
||||||
|
|||||||
@@ -1463,6 +1463,12 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 2732: //Kjeldoran Frostbeast
|
||||||
|
{
|
||||||
|
game->addObserver(NEW AKjeldoranFrostbeast(_id,card));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// --- addon Mirage ---
|
// --- addon Mirage ---
|
||||||
|
|
||||||
case 3410: //Seed of Innocence
|
case 3410: //Seed of Innocence
|
||||||
|
|||||||
Reference in New Issue
Block a user