mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Added several cards. Changed LoseAbilityTargetEffect to use targetPointer.
This commit is contained in:
parent
6a03522ee8
commit
27bce84e5c
17 changed files with 1159 additions and 3 deletions
|
|
@ -67,7 +67,7 @@ public class LoseAbilityTargetEffect extends ContinuousEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
||||
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||
if (permanent != null) {
|
||||
while (permanent.getAbilities().contains(ability)) {
|
||||
permanent.getAbilities().remove(ability);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue