mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
* Fixed a bug with tokens using the optional EntersBattlefieldEffect (e.g. Clone with Mimic Vat).
This commit is contained in:
parent
f48e20a48c
commit
c7744d8631
2 changed files with 118 additions and 1 deletions
|
|
@ -104,7 +104,10 @@ public class EntersBattlefieldEffect extends ReplacementEffectImpl {
|
|||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
if (optional) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
MageObject object = game.getObject(source.getSourceId());
|
||||
MageObject object = game.getPermanentEntering(source.getSourceId());
|
||||
if (object == null) {
|
||||
object = game.getObject(source.getSourceId());
|
||||
}
|
||||
if (controller == null || object == null) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue