mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +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
|
* @author BetaSteward_at_googlemail.com
|
||||||
*/
|
*/
|
||||||
public class GainAbilitySourceEffect extends ContinuousEffectImpl<GainAbilitySourceEffect> {
|
public class GainAbilitySourceEffect extends ContinuousEffectImpl<GainAbilitySourceEffect> implements SourceEffect {
|
||||||
|
|
||||||
protected Ability ability;
|
protected Ability ability;
|
||||||
// shall a card gain the ability (otherwise permanent)
|
// shall a card gain the ability (otherwise permanent)
|
||||||
|
@ -86,6 +86,12 @@ public class GainAbilitySourceEffect extends ContinuousEffectImpl<GainAbilitySou
|
||||||
public GainAbilitySourceEffect copy() {
|
public GainAbilitySourceEffect copy() {
|
||||||
return new GainAbilitySourceEffect(this);
|
return new GainAbilitySourceEffect(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(Ability source, Game game) {
|
||||||
|
super.init(source, game);
|
||||||
|
getAffectedObjects().add(source.getSourceId());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
|
|
Loading…
Reference in a new issue