Commit 7afd51ce authored by mercury233's avatar mercury233

fix

parent f79dd741
......@@ -50,7 +50,7 @@ function c101004020.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(tc,REASON_COST)
end
function c101004020.thfilter(c)
return c:IsType(TYPE_MONSTER) and (c:IsSetCard(0x400d) or c:IsSetCard(0x212)) and c:IsAbleToHand()
return c:IsType(TYPE_MONSTER) and not c:IsCode(101004022) and (c:IsSetCard(0x400d) or c:IsSetCard(0x212)) and c:IsAbleToHand()
end
function c101004020.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101004020.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -20,7 +20,7 @@ function c101004039.initial_effect(c)
e2:SetDescription(aux.Stringid(101004039,1))
e2:SetCategory(CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_PLAYER_TARGET)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(EVENT_DESTROYED)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,101004039)
......@@ -61,5 +61,5 @@ function c101004039.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c101004039.damop(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
Duel.Damage(p,Duel.GetFieldGroupCount(p,LOCATION_HAND,0)*300,REASON_EFFECT)
Duel.Damage(p,Duel.GetFieldGroupCount(p,LOCATION_HAND,0)*200,REASON_EFFECT)
end
......@@ -17,7 +17,7 @@ function c50366775.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,100225102)
e2:SetCountLimit(1,50366776)
e2:SetCondition(c50366775.thcon)
e2:SetTarget(c50366775.thtg)
e2:SetOperation(c50366775.thop)
......
......@@ -2,7 +2,7 @@
--Gouki Deathmatch
--Script by nekrozar
function c85638822.initial_effect(c)
c:EnableCounterPermit(0x146)
c:EnableCounterPermit(0x46)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_COUNTER)
......@@ -34,13 +34,13 @@ function c85638822.initial_effect(c)
c:RegisterEffect(e3)
end
function c85638822.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanAddCounter(tp,0x146,3,e:GetHandler()) end
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,3,0,0x146)
if chk==0 then return Duel.IsCanAddCounter(tp,0x46,3,e:GetHandler()) end
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,3,0,0x46)
end
function c85638822.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
c:AddCounter(0x146,3)
c:AddCounter(0x46,3)
end
end
function c85638822.rccon(e,tp,eg,ep,ev,re,r,rp)
......@@ -52,13 +52,13 @@ end
function c85638822.rcop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
c:RemoveCounter(tp,0x146,3,REASON_EFFECT)
c:RegisterFlagEffect(85638822,RESET_EVENT+0x1fe0000,0,0)
c:RemoveCounter(tp,0x46,1,REASON_EFFECT)
c:RegisterFlagEffect(85638822,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_BATTLE,0,0)
end
end
function c85638822.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:GetCounter(0x146)==0 and c:GetFlagEffect(85638822)>2
return c:GetCounter(0x46)==0 and c:GetFlagEffect(85638822)>0
end
function c85638822.spfilter(c,e,sp)
return c:IsSetCard(0xfc) and c:IsCanBeSpecialSummoned(e,0,sp,false,false)
......@@ -84,7 +84,6 @@ function c85638822.spop(e,tp,eg,ep,ev,re,r,rp)
tg:Remove(Card.IsCode,nil,sg:GetFirst():GetCode())
end
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 then
c:AddCounter(0x146,3)
c:ResetFlagEffect(85638822)
c:AddCounter(0x46,3)
end
end
......@@ -22,7 +22,7 @@ function c86750474.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_DESTROYED)
e2:SetCountLimit(1,100225106)
e2:SetCountLimit(1,86750475)
e2:SetCondition(c86750474.damcon)
e2:SetTarget(c86750474.damtg2)
e2:SetOperation(c86750474.damop2)
......
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