Name:Mahadi, Emporium Master
ManaCost:1 B R
Types:Legendary Creature Devil
PT:3/3
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$ At the beginning of your end step, create a Treasure token for each creature that died this turn.
SVar:TrigToken:DB$ Token | TokenAmount$ X | TokenScript$ c_a_treasure_sac | TokenOwner$ You
SVar:X:Count$ThisTurnEntered_Graveyard_from_Battlefield_Creature
DeckHints:Ability$Token
DeckHas:Ability$Sacrifice|Token & Type$Treasure|Artifact
Oracle:At the beginning of your end step, create a Treasure token for each creature that died this turn. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.")
