Commit c657f084 authored by Tachibana's avatar Tachibana

clean useless

parent 3c4b683a
......@@ -66,7 +66,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterFlagEffect(tp,m+100,RESET_PHASE+PHASE_END,0,1)
end
function dfilter(c)
return srre.check_set_FRXS(c) and c:IsDualState()
return srre.check_set_FRXS(c) and c:IsDualState() and c:IsType(TYPE_DUAL)
end
function cm.sumfilter(c)
return c:IsSummonable(true,nil) and c:IsRace(RACE_SEASERPENT)
......
......@@ -70,7 +70,7 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and ( re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsPreviousLocation(LOCATION_HAND) or re:IsActiveType(TYPE_MONSTER) and bit.band(LOCATION_HAND,re:GetActivateLocation())~=0 ) and Duel.IsExistingMatchingCard(cm.nrfilter,tp,LOCATION_MZONE,0,1,e:GetHandler(),e:GetHandler()) and Duel.IsChainNegatable(ev)
end
function cm.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
if ( Duel.GetFlagEffect(tp,m+100)==0 or (Duel.GetFlagEffect(tp,12043024)~=0 and Duel.GetFlagEffect(tp,m+100)<2 ) ) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.Hint(HINT_CARD,0,m)
Duel.NegateEffect(ev)
Duel.RegisterFlagEffect(tp,m+100,RESET_PHASE+PHASE_END,0,1)
......
......@@ -8,7 +8,7 @@ function cm.initial_effect(c)
--SpecialSummon
local e1=HakaShiro.SPSummon(c,m)
--SpecialSummoneffect
local e2=srre.SPSummoneffect(c,m,1,4,CATEGORY_TOGRAVE,nil,{1,m+100},nil,cm.spcost,cm.sptg,cm.spop)
local e2=srre.SPSummoneffect(c,m,{m,1},4,CATEGORY_TOGRAVE,nil,{1,m+100},nil,cm.spcost,cm.sptg,cm.spop)
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,3) end
......
......@@ -5,7 +5,7 @@ local cm=_G["c"..m]
cm.named_with_HakaShiro=true
function cm.initial_effect(c)
--SpecialSummoneffect
local e1=srre.SPSummoneffect(c,m,0,4,CATEGORY_TOGRAVE,nil,{1,m},nil,nil,cm.sptg,cm.spop)
local e1=srre.SPSummoneffect(c,m,{m,0},4,CATEGORY_TOGRAVE,nil,{1,m},nil,nil,cm.sptg,cm.spop)
if not cm.global_check then
cm.global_check=true
HakaShiro_EndEffect={}
......
......@@ -8,7 +8,7 @@ function cm.initial_effect(c)
--SpecialSummon
local e1=HakaShiro.SPSummon(c,m)
--DownSpecialSummon
local e2=srre.SPSummoneffect(c,m,1,4,CATEGORY_SPECIAL_SUMMON,nil,{1,m+100},nil,nil,cm.sptg,cm.spop)
local e2=srre.SPSummoneffect(c,m,{m,1},4,CATEGORY_SPECIAL_SUMMON,nil,{1,m+100},nil,nil,cm.sptg,cm.spop)
--Destroy
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,2))
......
......@@ -8,7 +8,7 @@ function cm.initial_effect(c)
--SpecialSummon
local e1=HakaShiro.SPSummon(c,m)
--to grave
local e2=srre.SPSummoneffect(c,m,1,3,CATEGORY_DECKDES,nil,{1,m+100},cm.spcon,nil,cm.sptg,cm.spop)
local e2=srre.SPSummoneffect(c,m,{m,1},3,CATEGORY_DECKDES,nil,{1,m+100},cm.spcon,nil,cm.sptg,cm.spop)
--disable field
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
......
......@@ -8,7 +8,7 @@ function cm.initial_effect(c)
--SpecialSummon
local e1=HakaShiro.SPSummon(c,m)
--to grave
local e2=srre.SPSummoneffect(c,m,1,3,CATEGORY_DECKDES,nil,{1,m+100},cm.spcon,nil,cm.sptg,cm.spop)
local e2=srre.SPSummoneffect(c,m,{m,1},3,CATEGORY_DECKDES,nil,{1,m+100},cm.spcon,nil,cm.sptg,cm.spop)
--disable spsummon
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
......
......@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e2:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and cm.tf21(chkc) and chkc~=e:GetHandler() end
if chk==0 then return Duel.IsExistingMatchingCard(cm.tf22,tp,LOCATION_DECK,0,1,nil)
and Duel.IsExistingTarget(cm.tf21,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
and Duel.IsExistingTarget(cm.tf21,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local tc=Duel.SelectTarget(tp,cm.tf21,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
......
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