Commit 36511c63 authored by DailyShana's avatar DailyShana

Merge pull request #393 from mercury233/patch-1

fix Magic Reflector
parents 9859dc77 530ad0dc
......@@ -22,7 +22,7 @@ end
function c61844784.addc(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then
tc:AddCounter(0x2a,1)
tc:AddCounter(0x102a,1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EFFECT_DESTROY_REPLACE)
......@@ -34,9 +34,9 @@ function c61844784.addc(e,tp,eg,ep,ev,re,r,rp)
end
function c61844784.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return bit.band(r,REASON_RULE)==0
and e:GetHandler():GetCounter(0x2a)>0 end
and e:GetHandler():GetCounter(0x102a)>0 end
return true
end
function c61844784.repop(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveCounter(tp,0x2a,1,REASON_EFFECT)
e:GetHandler():RemoveCounter(tp,0x102a,1,REASON_EFFECT)
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