mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fixed GainAbilitySourceEffect
This commit is contained in:
parent
b0f137ffec
commit
b0b57fd475
1 changed files with 7 additions and 1 deletions
|
@ -41,7 +41,7 @@ import mage.game.permanent.Permanent;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class GainAbilitySourceEffect extends ContinuousEffectImpl<GainAbilitySourceEffect> {
|
||||
public class GainAbilitySourceEffect extends ContinuousEffectImpl<GainAbilitySourceEffect> implements SourceEffect {
|
||||
|
||||
protected Ability ability;
|
||||
// shall a card gain the ability (otherwise permanent)
|
||||
|
@ -86,6 +86,12 @@ public class GainAbilitySourceEffect extends ContinuousEffectImpl<GainAbilitySou
|
|||
public GainAbilitySourceEffect copy() {
|
||||
return new GainAbilitySourceEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(Ability source, Game game) {
|
||||
super.init(source, game);
|
||||
getAffectedObjects().add(source.getSourceId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
|
|
Loading…
Reference in a new issue