Advertisement
Yamian

c999999990.lua (YGOPRO-Perfectly Ultimate Great Moth)

Jun 2nd, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.87 KB | None | 0 0
  1. --Perfectly Ultimate Great Moth
  2. --COPYRIGHT by Yami An
  3. function c999999990.initial_effect(c)
  4.     c:EnableReviveLimit()
  5.     --Special summon 1
  6.     local e1=Effect.CreateEffect(c)
  7.     e1:SetType(EFFECT_TYPE_FIELD)
  8.     e1:SetCode(EFFECT_SPSUMMON_PROC)
  9.     e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
  10.     e1:SetRange(LOCATION_HAND+LOCATION_DECK)
  11.     e1:SetCondition(c999999990.spcon1)
  12.     e1:SetOperation(c999999990.spop1)
  13.     c:RegisterEffect(e1)
  14.     --Special summon 2
  15.     local e2=Effect.CreateEffect(c)
  16.     e2:SetType(EFFECT_TYPE_FIELD)
  17.     e2:SetCode(EFFECT_SPSUMMON_PROC)
  18.     e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
  19.     e2:SetRange(LOCATION_HAND+LOCATION_DECK)
  20.     e2:SetCondition(c999999990.spcon2)
  21.     e2:SetOperation(c999999990.spop2)
  22.     c:RegisterEffect(e2)
  23. end
  24. function c999999990.eqfilter1(c)
  25.     return c:IsCode(40240595) and c:GetTurnCounter()>=6
  26. end
  27. function c999999990.rfilter1(c)
  28.     return c:IsCode(58192742) and c:GetEquipGroup():IsExists(c999999990.eqfilter1,1,nil)
  29. end
  30. function c999999990.spcon1(e,c)
  31.     if c==nil then return true end
  32.     return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1 and Duel.CheckReleaseGroup(c:GetControler(),c999999990.rfilter1,1,nil)
  33. end
  34. function c999999990.spop1(e,tp,eg,ep,ev,re,r,rp,c)
  35.     local g=Duel.SelectReleaseGroup(c:GetControler(),c999999990.rfilter1,1,1,nil)
  36.     Duel.Release(g,REASON_COST)
  37. end
  38. function c999999990.eqfilter2(c)
  39.     return c:IsCode(40240595) and c:GetTurnCounter()>=5
  40. end
  41. function c999999990.rfilter2(c)
  42.     return c:IsCode(87756343) and c:GetEquipGroup():IsExists(c999999990.eqfilter2,1,nil)
  43. end
  44. function c999999990.spcon2(e,c)
  45.     if c==nil then return true end
  46.     return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1 and Duel.CheckReleaseGroup(c:GetControler(),c999999990.rfilter2,1,nil)
  47. end
  48. function c999999990.spop2(e,tp,eg,ep,ev,re,r,rp,c)
  49.     local g=Duel.SelectReleaseGroup(c:GetControler(),c999999990.rfilter2,1,1,nil)
  50.     Duel.Release(g,REASON_COST)
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement