Erwan
- Adding new icons from J - fixed a bug with Zombie Master (for real this time, I swear !) - The AI should play Wrath of god in a more "clever" way
This commit is contained in:
@@ -882,7 +882,8 @@ class ALord:public ListMaintainerAbility{
|
||||
card->addToToughness(toughness);
|
||||
if (ability != -1) card->basicAbilities[ability] +=1;
|
||||
if (regenCost){
|
||||
AStandardRegenerate * regen = NEW AStandardRegenerate(0, card, card, regenCost);
|
||||
ManaCost * _regenCost = NEW ManaCost(regenCost);
|
||||
AStandardRegenerate * regen = NEW AStandardRegenerate(0, card, card, _regenCost);
|
||||
regenerations[card] = regen;
|
||||
game->addObserver(regen);
|
||||
}
|
||||
|
||||
@@ -22,10 +22,11 @@ using std::map;
|
||||
|
||||
//Two stupid variables used to give a hint to the AI:
|
||||
// Should I cast a spell on an enemy or friendly unit ?
|
||||
#define BAKA_EFFECT_GOOD 10
|
||||
#define BAKA_EFFECT_BAD 11
|
||||
|
||||
#define BAKA_EFFECT_GOOD 1
|
||||
#define BAKA_EFFECT_BAD -1
|
||||
#define BAKA_EFFECT_DONTKNOW 0
|
||||
|
||||
#define COUNT_POWER 1
|
||||
|
||||
class MTGAbility: public ActionElement{
|
||||
protected:
|
||||
@@ -183,6 +184,7 @@ class GenericTriggeredAbility:public TriggeredAbility{
|
||||
/* Ability Factory */
|
||||
class AbilityFactory{
|
||||
private:
|
||||
int countCards(TargetChooser * tc, Player * player = NULL, int option = 0);
|
||||
int destroyAllInPlay(TargetChooser * tc, int bury = 0);
|
||||
int putInPlayFromZone(MTGCardInstance * card, MTGGameZone * zone, Player * p);
|
||||
Trigger * parseTrigger(string magicText);
|
||||
@@ -195,3 +197,4 @@ class AbilityFactory{
|
||||
#include "MTGCardInstance.h"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user