Name:Ogre Battlecaster
ManaCost:2 R
Types:Creature Ogre Shaman
PT:3/3
K:First Strike
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigPlay | TriggerDescription$ Whenever CARDNAME attacks, you may cast target instant or sorcery card from your graveyard by paying {R}{R} in addition to its other costs. If that spell would be put into a graveyard, exile it instead. When you cast that spell, CARDNAME gets +X/+0 until end of turn, where X is that spell's mana value.
SVar:TrigPlay:DB$ Play | ValidTgts$ Instant.YouOwn,Sorcery.YouOwn | TgtZone$ Graveyard | TgtPrompt$ Select target instant or sorcery card | ValidSA$ Spell | ReplaceGraveyard$ Exile | PlayRaiseCost$ R R | Optional$ True | RememberPlayed$ True | SubAbility$ TrigDT
SVar:TrigDT:DB$ ImmediateTrigger | Execute$ TrigPump | RememberObjects$ Remembered | ConditionDefined$ Remembered | ConditionPresent$ Card | SubAbility$ DBCleanup | TriggerDescription$ When you cast that spell, CARDNAME gets +X/+0 until end of turn, where X is that spell's mana value.
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:TrigPump:DB$ Pump | Defined$ Self | NumAtt$ +X
SVar:X:TriggerRemembered$CardManaCostLKI
SVar:HasAttackEffect:TRUE
AI:RemoveDeck:All
DeckHas:Ability$Graveyard
DeckHints:Type$Instant|Sorcery
Oracle:First strike\nWhenever Ogre Battlecaster attacks, you may cast target instant or sorcery card from your graveyard by paying {R}{R} in addition to its other costs. If that spell would be put into a graveyard, exile it instead. When you cast that spell, Ogre Battlecaster gets +X/+0 until end of turn, where X is that spell's mana value.
