* Humble Defector - Fixed that if its activated ability is on the stack and the Humble Defector left battlefield and returned before resolving the control of it changed regardless.

This commit is contained in:
LevelX2 2015-04-07 17:20:07 +02:00
parent 2f09b2859c
commit 393444a87b

View file

@ -98,11 +98,11 @@ class HumbleDefectorEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
Permanent humbleDefector = game.getPermanent(source.getSourceId());
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
controller.drawCards(2, game);
}
Permanent humbleDefector = (Permanent) source.getSourceObjectIfItStillExists(game);
Player targetOpponent = game.getPlayer(getTargetPointer().getFirst(game, source));
if (targetOpponent != null && humbleDefector != null) {
ContinuousEffect effect = new HumbleDefectorControlSourceEffect();