Erwan
-fix issue 252 (equipment goes to graveyard)
This commit is contained in:
@@ -13,6 +13,7 @@ generic/equip_reach.txt
|
||||
generic/equip_shroud.txt
|
||||
generic/equip_shroud2.txt
|
||||
generic/equip_wither.txt
|
||||
generic/equipment_i252.txt
|
||||
generic/fear.txt
|
||||
generic/fear_i147.txt
|
||||
generic/first_and_double_strike1_i187.txt
|
||||
|
||||
44
projects/mtg/bin/Res/test/generic/equipment_i252.txt
Normal file
44
projects/mtg/bin/Res/test/generic/equipment_i252.txt
Normal file
@@ -0,0 +1,44 @@
|
||||
#Test:equipment
|
||||
#see http://code.google.com/p/wagic/issues/detail?id=252
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
manapool:{5}{G}
|
||||
hand:giant spider
|
||||
inplay:trusty machete
|
||||
[PLAYER2]
|
||||
inplay:colossus of sardia
|
||||
[DO]
|
||||
giant spider
|
||||
trusty machete
|
||||
giant spider
|
||||
eot
|
||||
next
|
||||
#upkeep
|
||||
next
|
||||
#draw
|
||||
next
|
||||
#main
|
||||
next
|
||||
#begin
|
||||
next
|
||||
#attackers
|
||||
colossus of sardia
|
||||
next
|
||||
#blockers
|
||||
giant spider
|
||||
next
|
||||
#damage
|
||||
next
|
||||
#trample
|
||||
next
|
||||
#combat end
|
||||
[ASSERT]
|
||||
COMBATEND
|
||||
[PLAYER1]
|
||||
inplay:trusty machete
|
||||
graveyard:giant spider
|
||||
life:16
|
||||
[PLAYER2]
|
||||
inplay:colossus of sardia
|
||||
[END]
|
||||
@@ -291,7 +291,7 @@ void GameObserver::stateEffects()
|
||||
card->afterDamage();
|
||||
|
||||
//Remove auras that don't have a valid target anymore
|
||||
if (card->target && !isInPlay(card->target)){
|
||||
if (card->target && !isInPlay(card->target) && !card->hasType("equipment")){
|
||||
players[i]->game->putInGraveyard(card);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user