Name:Master of Waves
ManaCost:3 U
Types:Creature Merfolk Wizard
PT:2/1
K:Protection from red
S:Mode$ Continuous | Affected$ Creature.Elemental+YouCtrl | AddPower$ 1 | AddToughness$ 1 | Description$ Elemental creatures you control get +1/+1.
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigToken | TriggerDescription$ When CARDNAME enters, create a number of 1/0 blue Elemental creature tokens equal to your devotion to blue. (Each {U} in the mana costs of permanents you control counts toward your devotion to blue.)
SVar:TrigToken:DB$ Token | TokenAmount$ X | TokenScript$ u_1_0_elemental | TokenOwner$ You
SVar:X:Count$Devotion.Blue
SVar:PlayMain1:TRUE
SVar:AIEvaluationModifier:SVar$AIElemPTBonus/Plus.AIElemTokenGenBonus
SVar:AIElemPTBonus:PlayerCountPropertyYou$Valid Elemental.YouCtrl/Times.25
SVar:AIElemTokenGenBonus:PlayerCountPropertyYou$Valid Elemental.token+YouCtrl/Times.15
Oracle:Protection from red\nElemental creatures you control get +1/+1.\nWhen Master of Waves enters, create a number of 1/0 blue Elemental creature tokens equal to your devotion to blue. (Each {U} in the mana costs of permanents you control counts toward your devotion to blue.)
