Skip to content

Commit

Permalink
New Card: Fungal Sprouting
Browse files Browse the repository at this point in the history
  • Loading branch information
gseitz committed Oct 13, 2014
1 parent 39df371 commit 4ce1d8d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Magic-Cards/src/Magic/M13.hs
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,23 @@ farseek = mkCard $ do
Nothing -> return ()
will $ ShuffleLibrary stackYou

fungalSprouting :: Card
fungalSprouting = mkCard $ do
name =: Just "Fungal Sprouting"
types =: sorceryType
play =: Just playObject
{ manaCost = Just [Nothing, Nothing, Nothing, Just Green]
, effect = makeTokenEffect
}
where
makeTokenEffect = stackSelf $ \_rSelf you -> do
perms <- (map (get objectPart) . IdList.elems) <$> view (asks battlefield)
t <- tick
let yours = filter (isControlledBy you &&* hasTypes creatureType) perms
maxPower = maximum $ 0 : map (maybe 0 fst . get pt) yours
token = simpleCreatureToken t you [Saproling] [Green] (1,1)
void $ executeEffects $ replicate maxPower $
WillMoveObject Nothing Battlefield (Permanent token Untapped 0 False Nothing Nothing)

garrukPrimalHunter :: Card
garrukPrimalHunter = mkCard $ do
Expand Down

0 comments on commit 4ce1d8d

Please sign in to comment.