Commit 6f164c78 authored by DailyShana's avatar DailyShana

fix

parent 41b3288e
...@@ -41,13 +41,14 @@ function c12385638.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,13 +41,14 @@ function c12385638.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c12385638.valcon(e,re,r,rp,rc) function c12385638.valcon(e,re,r,rp,rc)
if bit.band(r,REASON_BATTLE)~=0 then
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
local bc=rc:GetBattleTarget() local bc=rc:GetBattleTarget()
if bit.band(r,REASON_BATTLE)~=0 and bc and bc:IsSetCard(0xd2) and bc:IsControler(tp) if bc and bc:IsSetCard(0xd2) and bc:IsControler(tp)
and Duel.GetFlagEffect(tp,12385638)==0 then and Duel.GetFlagEffect(tp,12385638)==0 then
Duel.RegisterFlagEffect(tp,12385638,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,12385638,RESET_PHASE+PHASE_END,0,1)
return true return true
else
return false
end end
end
return false
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