Name:Rock Hydra
ManaCost:X R R
Types:Creature Hydra
PT:0/0
K:etbCounter:P1P1:X
A:AB$ PreventDamage | Cost$ R | Defined$ Self | Amount$ 1 | SpellDescription$ Prevent the next 1 damage that would be dealt to CARDNAME this turn.
A:AB$ PutCounter | Cost$ R R R | ActivationPhases$ Upkeep | CounterType$ P1P1 | CounterNum$ 1 | SpellDescription$ Put a +1/+1 counter on CARDNAME. Activate only during your upkeep.
R:Event$ DamageDone | ValidTarget$ Card.Self | ActiveZones$ Battlefield | ReplaceWith$ ReplaceDamage | PreventionEffect$ True | AlwaysReplace$ True | Description$ For each 1 damage that would be dealt to CARDNAME, if it has a +1/+1 counter on it, remove a +1/+1 counter from it and prevent that 1 damage.
SVar:ReplaceDamage:DB$ ReplaceDamage | Amount$ Z | SubAbility$ RemoveCtrsRepl
SVar:RemoveCtrsRepl:DB$ RemoveCounter | Defined$ Self | CounterType$ P1P1 | CounterNum$ NumDmg
SVar:NumDmg:ReplaceCount$DamageAmount
SVar:X:Count$xPaid
SVar:Y:Count$CardCounters.P1P1
SVar:Z:SVar$NumDmg/LimitMax.Y
AI:RemoveDeck:All
DeckHas:Ability$Counters
Oracle:Rock Hydra enters with X +1/+1 counters on it.\nFor each 1 damage that would be dealt to Rock Hydra, if it has a +1/+1 counter on it, remove a +1/+1 counter from it and prevent that 1 damage.\n{R}: Prevent the next 1 damage that would be dealt to Rock Hydra this turn.\n{R}{R}{R}: Put a +1/+1 counter on Rock Hydra. Activate only during your upkeep.
