Commit 62fa0a32 authored by POLYMER's avatar POLYMER

fix

parent 4eaf39e4
......@@ -9,6 +9,7 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCountLimit(1,id)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetTarget(s.settg)
e2:SetOperation(s.setop)
c:RegisterEffect(e2)
......
......@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:GetHandler():IsRace(RACE_ROCK) and re:GetHandler()~=e:GetHandler()
return re and re:GetHandler():IsRace(RACE_ROCK) and re:GetHandler()~=e:GetHandler() and re:IsHasType(EFFECT_TYPE_ACTIONS)
end
function cm.filter(c)
return c:IsAttack(1000) and c:IsRace(RACE_ROCK) and c:IsAbleToHand()
......
......@@ -76,7 +76,7 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(s.reptg)
e1:SetOperation(s.repop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1,true)
tc:RegisterEffect(e1)
tc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,2))
end
if c:IsFaceup() and c:IsRelateToEffect(e) then
......
......@@ -149,7 +149,7 @@ function s.imcop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(s.efilter)
e1:SetLabel(e:GetLabelObject():GetHandler():GetCode())
c:RegisterEffect(e1)
c:RegisterEffect(e1,true)
Duel.RaiseSingleEvent(c,EVENT_CUSTOM+id,e:GetLabelObject(),REASON_EFFECT,tp,tp,0)
e:Reset()
end
......
......@@ -99,10 +99,10 @@ end
function s.count(e,tp,eg,ep,ev,re,r,rp)
local des=eg:GetFirst()
if des:IsReason(REASON_BATTLE) then
des:GetReasonCard():RegisterFlagEffect(id+33,RESET_EVENT+0x1fc0000+RESET_PHASE+PHASE_END,0,1)
des:GetReasonCard():RegisterFlagEffect(id+33,RESET_EVENT+0x1fc0000+RESET_PHASE+PHASE_DRAW,0,1)
elseif re then
local rc=re:GetHandler()
if eg:IsExists(Card.IsReason,1,nil,REASON_EFFECT) and rc then rc:RegisterFlagEffect(id+33,RESET_EVENT+0x1fc0000+RESET_PHASE+PHASE_END,0,1) end
if eg:IsExists(Card.IsReason,1,nil,REASON_EFFECT) and rc then rc:RegisterFlagEffect(id+33,RESET_EVENT+0x1fc0000+RESET_PHASE+PHASE_DRAW,0,1) end
end
end
function s.checkop2(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