Last known information. Fixed Razor Hippogriff.

This commit is contained in:
magenoxx 2011-01-20 16:27:42 +03:00
parent 2c90429867
commit 9ed30fa0ae
4 changed files with 42 additions and 1 deletions

View file

@ -108,7 +108,10 @@ public class RazorHippogriff extends CardImpl<RazorHippogriff> {
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
if (player != null) {
MageObject card = game.getObject(source.getFirstTarget());
Card card = player.getGraveyard().get(source.getFirstTarget(), game);
if (card == null) {
card = game.getLastKnownInformation(source.getFirstTarget(), Zone.GRAVEYARD);
}
if (card != null) {
player.gainLife(card.getManaCost().convertedManaCost(), game);
}