Commit 1f465405 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix Myutant (#1759)

parent ec8e7e5c
...@@ -43,13 +43,13 @@ function c26561172.spcostexcheckfilter(c,e,tp,code) ...@@ -43,13 +43,13 @@ function c26561172.spcostexcheckfilter(c,e,tp,code)
end end
function c26561172.spcostexcheck(c,e,tp) function c26561172.spcostexcheck(c,e,tp)
local result=false local result=false
if c:IsType(TYPE_MONSTER) then if c:GetOriginalType()&TYPE_MONSTER~=0 then
result=result or Duel.IsExistingMatchingCard(c26561172.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,34695290) result=result or Duel.IsExistingMatchingCard(c26561172.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,34695290)
end end
if c:IsType(TYPE_SPELL) then if c:GetOriginalType()&TYPE_SPELL~=0 then
result=result or Duel.IsExistingMatchingCard(c26561172.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,61089209) result=result or Duel.IsExistingMatchingCard(c26561172.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,61089209)
end end
if c:IsType(TYPE_TRAP) then if c:GetOriginalType()&TYPE_TRAP~=0 then
result=result or Duel.IsExistingMatchingCard(c26561172.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,7574904) result=result or Duel.IsExistingMatchingCard(c26561172.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,7574904)
end end
return result return result
...@@ -66,7 +66,7 @@ function c26561172.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -66,7 +66,7 @@ function c26561172.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local cost=Duel.SelectMatchingCard(tp,c26561172.spcostfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() local cost=Duel.SelectMatchingCard(tp,c26561172.spcostfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp):GetFirst()
e:SetLabel(cost:GetType()) e:SetLabel(cost:GetOriginalType())
Duel.Remove(cost,POS_FACEUP,REASON_COST) Duel.Remove(cost,POS_FACEUP,REASON_COST)
end end
function c26561172.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c26561172.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -78,9 +78,9 @@ function c26561172.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -78,9 +78,9 @@ function c26561172.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c26561172.spopfilter(c,e,tp,typ) function c26561172.spopfilter(c,e,tp,typ)
return (((typ & TYPE_MONSTER)>0 and c:IsCode(34695290)) return (((typ&TYPE_MONSTER)>0 and c:IsCode(34695290))
or ((typ & TYPE_SPELL)>0 and c:IsCode(61089209)) or ((typ&TYPE_SPELL)>0 and c:IsCode(61089209))
or ((typ & TYPE_TRAP)>0 and c:IsCode(7574904))) or ((typ&TYPE_TRAP)>0 and c:IsCode(7574904)))
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c26561172.spop(e,tp,eg,ep,ev,re,r,rp) function c26561172.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -45,13 +45,13 @@ function c62201847.spcostexcheckfilter(c,e,tp,code) ...@@ -45,13 +45,13 @@ function c62201847.spcostexcheckfilter(c,e,tp,code)
end end
function c62201847.spcostexcheck(c,e,tp) function c62201847.spcostexcheck(c,e,tp)
local result=false local result=false
if c:IsType(TYPE_MONSTER) then if c:GetOriginalType()&TYPE_MONSTER~=0 then
result=result or Duel.IsExistingMatchingCard(c62201847.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,34695290) result=result or Duel.IsExistingMatchingCard(c62201847.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,34695290)
end end
if c:IsType(TYPE_SPELL) then if c:GetOriginalType()&TYPE_SPELL~=0 then
result=result or Duel.IsExistingMatchingCard(c62201847.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,61089209) result=result or Duel.IsExistingMatchingCard(c62201847.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,61089209)
end end
if c:IsType(TYPE_TRAP) then if c:GetOriginalType()&TYPE_TRAP~=0 then
result=result or Duel.IsExistingMatchingCard(c62201847.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,7574904) result=result or Duel.IsExistingMatchingCard(c62201847.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,7574904)
end end
return result return result
...@@ -71,7 +71,7 @@ function c62201847.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -71,7 +71,7 @@ function c62201847.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local cost=Duel.SelectMatchingCard(tp,c62201847.spcostfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,e:GetHandler(),e,tp,e:GetHandler()):GetFirst() local cost=Duel.SelectMatchingCard(tp,c62201847.spcostfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,e:GetHandler(),e,tp,e:GetHandler()):GetFirst()
e:SetLabel(cost:GetType()) e:SetLabel(cost:GetOriginalType())
Duel.Remove(cost,POS_FACEUP,REASON_COST) Duel.Remove(cost,POS_FACEUP,REASON_COST)
end end
function c62201847.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c62201847.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -83,9 +83,9 @@ function c62201847.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -83,9 +83,9 @@ function c62201847.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c62201847.spopfilter(c,e,tp,typ) function c62201847.spopfilter(c,e,tp,typ)
return (((typ & TYPE_MONSTER)>0 and c:IsCode(34695290)) return (((typ&TYPE_MONSTER)>0 and c:IsCode(34695290))
or ((typ & TYPE_SPELL)>0 and c:IsCode(61089209)) or ((typ&TYPE_SPELL)>0 and c:IsCode(61089209))
or ((typ & TYPE_TRAP)>0 and c:IsCode(7574904))) or ((typ&TYPE_TRAP)>0 and c:IsCode(7574904)))
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c62201847.spop(e,tp,eg,ep,ev,re,r,rp) function c62201847.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -45,13 +45,13 @@ function c8200556.spcostexcheckfilter(c,e,tp,code) ...@@ -45,13 +45,13 @@ function c8200556.spcostexcheckfilter(c,e,tp,code)
end end
function c8200556.spcostexcheck(c,e,tp) function c8200556.spcostexcheck(c,e,tp)
local result=false local result=false
if c:IsType(TYPE_MONSTER) then if c:GetOriginalType()&TYPE_MONSTER~=0 then
result=result or Duel.IsExistingMatchingCard(c8200556.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,34695290) result=result or Duel.IsExistingMatchingCard(c8200556.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,34695290)
end end
if c:IsType(TYPE_SPELL) then if c:GetOriginalType()&TYPE_SPELL~=0 then
result=result or Duel.IsExistingMatchingCard(c8200556.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,61089209) result=result or Duel.IsExistingMatchingCard(c8200556.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,61089209)
end end
if c:IsType(TYPE_TRAP) then if c:GetOriginalType()&TYPE_TRAP~=0 then
result=result or Duel.IsExistingMatchingCard(c8200556.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,7574904) result=result or Duel.IsExistingMatchingCard(c8200556.spcostexcheckfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,c,e,tp,7574904)
end end
return result return result
...@@ -71,7 +71,7 @@ function c8200556.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -71,7 +71,7 @@ function c8200556.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local cost=Duel.SelectMatchingCard(tp,c8200556.spcostfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,e:GetHandler(),e,tp,e:GetHandler()):GetFirst() local cost=Duel.SelectMatchingCard(tp,c8200556.spcostfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,e:GetHandler(),e,tp,e:GetHandler()):GetFirst()
e:SetLabel(cost:GetType()) e:SetLabel(cost:GetOriginalType())
Duel.Remove(cost,POS_FACEUP,REASON_COST) Duel.Remove(cost,POS_FACEUP,REASON_COST)
end end
function c8200556.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c8200556.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -83,9 +83,9 @@ function c8200556.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -83,9 +83,9 @@ function c8200556.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c8200556.spopfilter(c,e,tp,typ) function c8200556.spopfilter(c,e,tp,typ)
return (((typ & TYPE_MONSTER)>0 and c:IsCode(34695290)) return (((typ&TYPE_MONSTER)>0 and c:IsCode(34695290))
or ((typ & TYPE_SPELL)>0 and c:IsCode(61089209)) or ((typ&TYPE_SPELL)>0 and c:IsCode(61089209))
or ((typ & TYPE_TRAP)>0 and c:IsCode(7574904))) or ((typ&TYPE_TRAP)>0 and c:IsCode(7574904)))
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c8200556.spop(e,tp,eg,ep,ev,re,r,rp) function c8200556.spop(e,tp,eg,ep,ev,re,r,rp)
......
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