fixed entering tapped abilities not working correctly (fixes #5010,)

This commit is contained in:
Evan Kranzler 2018-06-10 20:42:22 -04:00
parent 6715683ef9
commit f8d274d7cd

View file

@ -1,4 +1,3 @@
package mage.abilities.effects.common; package mage.abilities.effects.common;
import mage.abilities.Ability; import mage.abilities.Ability;
@ -38,6 +37,9 @@ public class TapSourceEffect extends OneShotEffect {
@Override @Override
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Permanent permanent = source.getSourcePermanentIfItStillExists(game); Permanent permanent = source.getSourcePermanentIfItStillExists(game);
if (permanent == null) {
permanent = game.getPermanentEntering(source.getSourceId());
}
if (permanent != null) { if (permanent != null) {
if (withoutTrigger) { if (withoutTrigger) {
permanent.setTapped(true); permanent.setTapped(true);