Commit 67eefc83 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12009033.lua

parent 5f8be26e
......@@ -71,6 +71,9 @@ end
function c12009033.spfilter(c,e,tp,ec)
return c:IsAttribute(ec:GetAttribute()) and c:IsRace(ec:GetRace()) and c:IsLevel(ec:GetLevel()+1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c12009033.spfilter1(c,e,tp,race,level,att)
return c:IsAttribute(att) and c:IsRace(race) and c:IsLevel(level+1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c12009033.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local ec=c:GetEquipTarget()
......@@ -80,11 +83,14 @@ function c12009033.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_RELEASE,ec,1,tp,0)
end
function c12009033.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ec=c:GetEquipTarget()
if not c:IsRelateToEffect(e) or Duel.SendtoHand(c,nil,REASON_EFFECT)<=0 or not c:IsLocation(LOCATION_HAND) or not ec or Duel.Release(ec,REASON_EFFECT)<=0 or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c12009033.spfilter,tp,0x1,0,1,1,nil,e,tp,ec)
if sg:GetCount()<=0 then return end
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
local c=e:GetHandler()
local ec=c:GetEquipTarget()
local race=ec:GetRace()
local level=ec:GetLevel()
local att=ec:GetAttribute()
if not c:IsRelateToEffect(e) or Duel.SendtoHand(c,nil,REASON_EFFECT)<=0 or not c:IsLocation(LOCATION_HAND) or not ec or Duel.Release(ec,REASON_EFFECT)<=0 or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c12009033.spfilter1,tp,0x1,0,1,1,nil,e,tp,race,level,att)
if sg:GetCount()<=0 then return end
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment