[KHM] Implemented The Raven's Warning (#7425)

This commit is contained in:
Daniel Bomar 2021-01-22 12:13:20 -06:00 committed by GitHub
parent ca05fb9253
commit a26d9b2fd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 134 additions and 6 deletions

View file

@ -31,7 +31,7 @@ public class LookAtTargetPlayerHandEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Player you = game.getPlayer(source.getControllerId());
Player targetPlayer = game.getPlayer(source.getFirstTarget());
Player targetPlayer = game.getPlayer(targetPointer.getFirst(game, source));
MageObject sourceObject = game.getObject(source.getSourceId());
if (you != null && targetPlayer != null) {
you.lookAtCards(sourceObject != null ? sourceObject.getIdName() : null, targetPlayer.getHand(), game);