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)
--destroy
--position
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(42551040,0))
e1:SetCategory(CATEGORY_POSITION)
......@@ -35,10 +35,8 @@ function c42551040.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c42551040.posop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
if tc:IsPosition(POS_FACEUP_ATTACK) then
Duel.ChangePosition(tc,POS_FACEUP_DEFENCE)
if tc:GetDefence()>0 then
if tc:IsRelateToEffect(e) then
if tc:GetDefence()>0 and Duel.ChangePosition(tc,POS_FACEUP_DEFENCE)~=0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_DEFENCE_FINAL)
......@@ -47,5 +45,4 @@ function c42551040.posop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1)
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