Commit d148acf5 authored by wind2009's avatar wind2009

Fix ワクチンゲール

parent 31919a1a
No preview for this file type
...@@ -5,6 +5,7 @@ function s.initial_effect(c) ...@@ -5,6 +5,7 @@ function s.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
...@@ -15,9 +16,9 @@ function s.initial_effect(c) ...@@ -15,9 +16,9 @@ function s.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_ATKCHANGE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_CUSTOM+id) e2:SetCode(EVENT_CUSTOM+id)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
...@@ -86,7 +87,7 @@ function s.atkcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -86,7 +87,7 @@ function s.atkcon2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,tp) and not eg:IsContains(e:GetHandler()) return eg:IsExists(s.cfilter,1,nil,tp) and not eg:IsContains(e:GetHandler())
end end
function s.atkfilter(c,e,tp) function s.atkfilter(c,e,tp)
return c:IsSummonPlayer(tp) and (not e or c:IsRelateToEffect(e)) return c:IsControler(tp) and (not e or c:IsRelateToEffect(e))
and c:IsType(TYPE_MONSTER) and c:IsFaceup() and c:IsLocation(LOCATION_MZONE) and c:IsType(TYPE_MONSTER) and c:IsFaceup() and c:IsLocation(LOCATION_MZONE)
end end
function s.atktg2(e,tp,eg,ep,ev,re,r,rp,chk) function s.atktg2(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -95,13 +96,15 @@ function s.atktg2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -95,13 +96,15 @@ function s.atktg2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
end end
function s.atkop2(e,tp,eg,ep,ev,re,r,rp) function s.atkop2(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(s.atkfilter,nil,e,tp):Filter(Card.IsRelateToChain,nil) local g=eg:Filter(Card.IsRelateToChain,nil)
for tc in aux.Next(g) do for tc in aux.Next(g) do
local e1=Effect.CreateEffect(e:GetHandler()) if tc:IsType(TYPE_MONSTER) and tc:IsFaceup() and tc:IsLocation(LOCATION_MZONE) then
e1:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(900) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) e1:SetValue(900)
tc:RegisterEffect(e1)
end
end end
end end
\ No newline at end of file
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