mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fixed entering tapped abilities not working correctly (fixes #5010,)
This commit is contained in:
parent
6715683ef9
commit
f8d274d7cd
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
|
@ -38,6 +37,9 @@ public class TapSourceEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = source.getSourcePermanentIfItStillExists(game);
|
||||
if (permanent == null) {
|
||||
permanent = game.getPermanentEntering(source.getSourceId());
|
||||
}
|
||||
if (permanent != null) {
|
||||
if (withoutTrigger) {
|
||||
permanent.setTapped(true);
|
||||
|
|
Loading…
Reference in a new issue