Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. --Mutaslime Princess
  2. function c84342510.initial_effect(c)
  3. --Activate
  4. local e1=Effect.CreateEffect(c)
  5. e1:SetDescription(aux.Stringid(84342510,0))
  6. e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
  7. e1:SetType(EFFECT_TYPE_IGNITION)
  8. e1:SetRange(LOCATION_MZONE)
  9. e1:SetCountLimit(1)
  10. e1:SetCost(c84342510.cost)
  11. e1:SetTarget(c84342510.target)
  12. e1:SetOperation(c84342510.operation)
  13. c:RegisterEffect(e1)
  14. end
  15. function c84342510.costfilter(c)
  16. return c:IsFaceup()and c:IsSet(4095) and not c:IsCode(84342510)
  17. end
  18. function c84342510.cost(e,tp,eg,ep,ev,re,r,rp,chk)
  19. if chk==0 then return Duel.CheckReleaseGroup(tp,c84342510.costfilter,1,nil) end
  20. local g=Duel.SelectReleaseGroup(tp,c84342510.costfilter,1,1,nil)
  21. Duel.Release(g,REASON_COST)
  22. end
  23. function c84342510.filter(c,e,tp)
  24. return c:IsCode(84342510)
  25. end
  26. function c84342510.target(e,tp,eg,ep,ev,re,r,rp,chk)
  27. if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
  28. and Duel.IsExistingMatchingCard(c84342510.filter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
  29. Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE)
  30. end
  31. function c84342510.operation(e,tp,eg,ep,ev,re,r,rp)
  32. if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
  33. Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
  34. local g=Duel.SelectMatchingCard(tp,c84342510.filter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
  35. if g:GetCount()>0 then
  36. Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement