mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
Fixed GainAbilityAttachedEffect that it can't apply some effects after enchantment dies (from gitter);
This commit is contained in:
parent
f6585ef734
commit
d81d253395
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ public class GainAbilityAttachedEffect extends ContinuousEffectImpl {
|
|||
public void init(Ability source, Game game) {
|
||||
super.init(source, game);
|
||||
if (affectedObjectsSet) {
|
||||
Permanent equipment = game.getPermanent(source.getSourceId());
|
||||
Permanent equipment = game.getPermanentOrLKIBattlefield(source.getSourceId());
|
||||
if (equipment != null && equipment.getAttachedTo() != null) {
|
||||
this.setTargetPointer(new FixedTarget(equipment.getAttachedTo(), game.getState().getZoneChangeCounter(equipment.getAttachedTo())));
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ public class GainAbilityAttachedEffect extends ContinuousEffectImpl {
|
|||
} else {
|
||||
sb.append("gains ");
|
||||
}
|
||||
sb.append(ability.getRule());
|
||||
sb.append('"' + ability.getRule("this creature") + '"');
|
||||
if (!duration.toString().isEmpty()) {
|
||||
sb.append(' ').append(duration.toString());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue