forked from External/mage
* Regeneration abilities improved:
* Fixed that regeneration shield isn't added to permanent on aura sacrifice cost (example: Stamina, Carapace, see #2221); * Fixed that regeneration shields accumulated in attached aura instead permanent (bug example: re-attached aura gives old shields to new permanent, see #6846); * Added card hint with regeneration shields amount (#6846);
This commit is contained in:
parent
516a4104f1
commit
00411b4a9b
7 changed files with 411 additions and 99 deletions
|
|
@ -10,6 +10,7 @@ import mage.abilities.effects.ContinuousEffect;
|
|||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.RequirementEffect;
|
||||
import mage.abilities.effects.RestrictionEffect;
|
||||
import mage.abilities.effects.common.RegenerateSourceEffect;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.abilities.hint.HintUtils;
|
||||
import mage.abilities.keyword.*;
|
||||
|
|
@ -1179,8 +1180,8 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
this.removeFromCombat(game);
|
||||
this.removeAllDamage(game);
|
||||
|
||||
// remove regen info
|
||||
game.getState().setValue(CardUtil.getCardZoneString("RegenerationActivated", this.getId(), game), Boolean.FALSE);
|
||||
// remove one regen shield
|
||||
RegenerateSourceEffect.decRegenerationShieldsAmount(game, this.getId());
|
||||
|
||||
game.fireEvent(GameEvent.getEvent(EventType.REGENERATED, objectId, source.getSourceId(), controllerId));
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue