mirror of
https://github.com/magefree/mage.git
synced 2026-01-22 19:29:59 -08:00
* Permeating Mass - Fixed that the copy effect did only work, if Permeating Mass did not die from combat damge.
This commit is contained in:
parent
c264da1cca
commit
bd70f923b7
2 changed files with 10 additions and 11 deletions
|
|
@ -88,9 +88,9 @@ class PermeatingMassEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability ability) {
|
||||
Permanent copyTo = game.getPermanentOrLKIBattlefield(getTargetPointer().getFirst(game, ability));
|
||||
if (copyTo != null) {
|
||||
Permanent copyFrom = game.getPermanent(ability.getSourceId());
|
||||
Permanent copyFrom = (Permanent) ability.getSourceObject(game);
|
||||
if (copyFrom != null) {
|
||||
game.copyPermanent(Duration.WhileOnBattlefield, copyFrom, copyTo.getId(), ability, new EmptyApplyToPermanent());
|
||||
game.copyPermanent(Duration.Custom, copyFrom, copyTo.getId(), ability, new EmptyApplyToPermanent());
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue