Commit d2bd6e37 authored by TanakaKotoha's avatar TanakaKotoha

nananananananana

parent 6c743c6b
......@@ -75,9 +75,7 @@ function c1150037.op2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.IsPlayerCanSpecialSummonMonster(tp,1150037,0,0x11,0,0,3,RACE_AQUA,ATTRIBUTE_WATER) then
c:AddMonsterAttribute(TYPE_NORMAL)
Duel.SpecialSummonStep(c,0,tp,tp,true,false,POS_FACEUP_DEFENSE)
c:AddMonsterAttributeComplete()
Duel.SpecialSummonComplete()
Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_DEFENSE)
end
end
end
......
......@@ -27,6 +27,7 @@ function c12009033.initial_effect(c)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,12009933)
e2:SetCondition(c12009033.thcon)
e2:SetTarget(c12009033.thtg)
e2:SetOperation(c12009033.thop)
......@@ -72,7 +73,7 @@ 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)
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()
......@@ -83,14 +84,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()
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)
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
......@@ -144,7 +144,6 @@ function c710236.spop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and Duel.IsPlayerCanSpecialSummonMonster(tp,710236,c710236.spfilter,0x1011,0,0,3,RACE_WARRIOR,ATTRIBUTE_DARK) then
c:AddMonsterAttribute(TYPE_NORMAL+TYPE_TUNER)
Duel.SpecialSummonStep(c,0,tp,tp,true,false,POS_FACEUP)
c:AddMonsterAttributeComplete()
--redirect
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -144,9 +144,7 @@ function c710237.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.IsPlayerCanSpecialSummonMonster(tp,710237,c710237.spfilter1,0x11,500,0,2,RACE_WARRIOR,ATTRIBUTE_EARTH) then
c:AddMonsterAttribute(TYPE_NORMAL)
Duel.SpecialSummonStep(c,0,tp,tp,true,false,POS_FACEUP)
c:AddMonsterAttributeComplete()
Duel.SpecialSummonComplete()
Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c710237.spfilter2,tp,LOCATION_HAND,0,1,1,nil)
if g:GetCount()>0 then
......
......@@ -151,7 +151,6 @@ function c710238.spop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and Duel.IsPlayerCanSpecialSummonMonster(tp,710238,c710238.spfilter,0x11,0,2000,4,RACE_WARRIOR,ATTRIBUTE_LIGHT) then
c:AddMonsterAttribute(TYPE_NORMAL)
Duel.SpecialSummonStep(c,0,tp,tp,true,false,POS_FACEUP)
c:AddMonsterAttributeComplete()
--redirect
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -150,7 +150,6 @@ function c710239.spop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and Duel.IsPlayerCanSpecialSummonMonster(tp,710239,c710239.spfilter,0x1011,0,2400,5,RACE_WARRIOR,ATTRIBUTE_WIND) then
c:AddMonsterAttribute(TYPE_NORMAL+TYPE_TUNER)
Duel.SpecialSummonStep(c,0,tp,tp,true,false,POS_FACEUP)
c:AddMonsterAttributeComplete()
--redirect
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -124,6 +124,6 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(81000000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1)
c:RegisterEffect(e1,true)
end
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