Commit b0862f77 authored by mercury233's avatar mercury233 Committed by GitHub

fix 風雲カラクリ城

parent faecafc6
......@@ -11,6 +11,7 @@ function c22751868.initial_effect(c)
e2:SetCategory(CATEGORY_POSITION)
e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_FZONE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCode(EVENT_BE_BATTLE_TARGET)
e2:SetCondition(c22751868.poscon)
e2:SetTarget(c22751868.postg)
......@@ -36,10 +37,10 @@ end
function c22751868.postg(e,tp,eg,ep,ev,re,r,rp,chk)
local d=Duel.GetAttackTarget()
if chk==0 then return d:IsCanChangePosition() end
d:CreateEffectRelation(e)
Duel.SetTargetCard(d)
end
function c22751868.posop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttackTarget()
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then
Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,0,POS_FACEUP_ATTACK,0)
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