Commit fa1df25b authored by woodee's avatar woodee

Merge pull request #107 from DailyShana/patch-3

fix 追走の翼
parents e558e3bf 364463b1
...@@ -56,10 +56,11 @@ function c42776855.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,10 +56,11 @@ function c42776855.operation(e,tp,eg,ep,ev,re,r,rp)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(42776855,0)) e3:SetDescription(aux.Stringid(42776855,0))
e3:SetCategory(CATEGORY_DESTROY) e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_BATTLE_START) e3:SetCode(EVENT_BATTLE_START)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetCondition(c42776855.atkcon) e3:SetCondition(c42776855.atkcon)
e3:SetTarget(c42776855.atktg)
e3:SetOperation(c42776855.atkop) e3:SetOperation(c42776855.atkop)
e3:SetReset(RESET_EVENT+0x1fe0000) e3:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e3) c:RegisterEffect(e3)
...@@ -89,6 +90,10 @@ function c42776855.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,6 +90,10 @@ function c42776855.atkcon(e,tp,eg,ep,ev,re,r,rp)
local bc=tc:GetBattleTarget() local bc=tc:GetBattleTarget()
return tc and tc:IsLocation(LOCATION_MZONE) and bc and bc:IsFaceup() and bc:IsLocation(LOCATION_MZONE) and bc:IsLevelAbove(5) return tc and tc:IsLocation(LOCATION_MZONE) and bc and bc:IsFaceup() and bc:IsLocation(LOCATION_MZONE) and bc:IsLevelAbove(5)
end end
function c42776855.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetFlagEffect(42776855)==0 end
e:GetHandler():RegisterFlagEffect(42776855,RESET_CHAIN,0,1)
end
function c42776855.atkop(e,tp,eg,ep,ev,re,r,rp) function c42776855.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return 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