- Dragon Whelp bug fix
- Rampage bug fix
- AI can use mana abilities.
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-07-19 04:19:24 +00:00
parent 72e10fab24
commit 9b263eaee1
6 changed files with 130 additions and 78 deletions

View File

@@ -519,7 +519,12 @@ MTGCardInstance * MTGCardInstance::getNextOpponent(MTGCardInstance * previous){
int MTGCardInstance::setDefenser(MTGCardInstance * opponent){
GameObserver * g = GameObserver::GetInstance();
if (defenser) defenser->blockers.remove(this);
if (defenser) {
if (g->players[0]->game->battlefield->hasCard(defenser) ||
g->players[1]->game->battlefield->hasCard(defenser) ) {
defenser->blockers.remove(this);
}
}
WEvent * e = NEW WEventCreatureBlocker(this, defenser, opponent);
defenser = opponent;
if (defenser){