Commit f1f8ef41 authored by salix5's avatar salix5

Merge pull request #1251 from nekrozar/patch-3

fix Bujingi Boar
parents ae86fb2b 3a09d538
--武神器-イクタ --武神器-イクタ
function c42551040.initial_effect(c) function c42551040.initial_effect(c)
--destroy --position
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(42551040,0)) e1:SetDescription(aux.Stringid(42551040,0))
e1:SetCategory(CATEGORY_POSITION) e1:SetCategory(CATEGORY_POSITION)
...@@ -35,17 +35,14 @@ function c42551040.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -35,17 +35,14 @@ function c42551040.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c42551040.posop(e,tp,eg,ep,ev,re,r,rp) function c42551040.posop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then if tc:IsRelateToEffect(e) then
if tc:IsPosition(POS_FACEUP_ATTACK) then if tc:GetDefence()>0 and Duel.ChangePosition(tc,POS_FACEUP_DEFENCE)~=0 then
Duel.ChangePosition(tc,POS_FACEUP_DEFENCE) local e1=Effect.CreateEffect(e:GetHandler())
if tc:GetDefence()>0 then e1:SetType(EFFECT_TYPE_SINGLE)
local e1=Effect.CreateEffect(e:GetHandler()) e1:SetCode(EFFECT_SET_DEFENCE_FINAL)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetValue(0)
e1:SetCode(EFFECT_SET_DEFENCE_FINAL) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e1:SetValue(0) tc:RegisterEffect(e1)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
end
end end
end end
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