Commit c539b7e0 authored by DailyShana's avatar DailyShana

fix Aiシャドー

parent 7dc4b3df
...@@ -11,12 +11,10 @@ function c77421977.initial_effect(c) ...@@ -11,12 +11,10 @@ function c77421977.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--atk up --atk up
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_TARGET)
e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetValue(800) e2:SetValue(800)
e2:SetTarget(aux.ctg)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--must attack --must attack
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -26,14 +24,14 @@ function c77421977.initial_effect(c) ...@@ -26,14 +24,14 @@ function c77421977.initial_effect(c)
e3:SetTargetRange(0,LOCATION_MZONE) e3:SetTargetRange(0,LOCATION_MZONE)
e3:SetCondition(c77421977.effcon) e3:SetCondition(c77421977.effcon)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--only attack monster --must attack monster
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD) e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_ONLY_ATTACK_MONSTER) e4:SetCode(EFFECT_MUST_ATTACK_MONSTER)
e4:SetRange(LOCATION_SZONE) e4:SetRange(LOCATION_SZONE)
e4:SetTargetRange(0,LOCATION_MZONE) e4:SetTargetRange(0,LOCATION_MZONE)
e4:SetCondition(c77421977.effcon) e4:SetCondition(c77421977.effcon)
e4:SetValue(aux.ctg) e4:SetValue(c77421977.atklimit)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--draw --draw
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
...@@ -72,6 +70,9 @@ end ...@@ -72,6 +70,9 @@ end
function c77421977.effcon(e,tp,eg,ep,ev,re,r,rp) function c77421977.effcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFirstCardTarget()~=nil return e:GetHandler():GetFirstCardTarget()~=nil
end end
function c77421977.atklimit(e,c)
return e:GetHandler():IsHasCardTarget(c)
end
function c77421977.drcon(e,tp,eg,ep,ev,re,r,rp) function c77421977.drcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousLocation(LOCATION_SZONE) and c:GetPreviousControler()==tp return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousLocation(LOCATION_SZONE) and c:GetPreviousControler()==tp
......
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