Commit fe35e149 authored by DailyShana's avatar DailyShana

fix

parent b736c8ef
......@@ -11,7 +11,7 @@ function c15180041.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_HAND)
e2:SetCondition(c15180041.spcon)
e2:SetOperation(c15180041.spop)
......
......@@ -56,32 +56,15 @@ function c16625614.dbop(e,tp,eg,ep,ev,re,r,rp)
if tc and Duel.IsPlayerCanSpecialSummonMonster(tp,id,0,0x11,0,0,1,RACE_FIEND,ATTRIBUTE_DARK)
and Duel.SelectYesNo(tp,aux.Stringid(16625614,0)) then
tc:ResetEffect(EFFECT_CANNOT_SPECIAL_SUMMON,RESET_CODE)
--monster
local e1=Effect.CreateEffect(tc)
tc:AddMonsterAttribute(ATTRIBUTE_DARK,RACE_FIEND,1,0,0)
Duel.SpecialSummonStep(tc,0,tp,tp,true,false,POS_FACEUP)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_TYPE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(TYPE_NORMAL+TYPE_MONSTER)
e1:SetReset(RESET_EVENT+0x47c0000)
e1:SetReset(RESET_EVENT+0x1fc0000)
tc:RegisterEffect(e1,true)
Duel.SpecialSummonStep(tc,0,tp,tp,true,false,POS_FACEUP)
--attributes
local e2=e1:Clone()
e2:SetCode(EFFECT_CHANGE_RACE)
e2:SetValue(RACE_FIEND)
tc:RegisterEffect(e2,true)
local e3=e1:Clone()
e3:SetCode(EFFECT_CHANGE_ATTRIBUTE)
e3:SetValue(ATTRIBUTE_DARK)
tc:RegisterEffect(e3,true)
local e4=e1:Clone()
e4:SetCode(EFFECT_SET_BASE_ATTACK)
e4:SetValue(0)
tc:RegisterEffect(e4,true)
local e5=e1:Clone()
e5:SetCode(EFFECT_SET_BASE_DEFENSE)
e5:SetValue(0)
tc:RegisterEffect(e5,true)
local e6=Effect.CreateEffect(tc)
e6:SetType(EFFECT_TYPE_SINGLE)
e6:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
......@@ -98,9 +81,7 @@ function c16625614.dbop(e,tp,eg,ep,ev,re,r,rp)
--cannot be target
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_SINGLE)
e8:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e8:SetCode(EFFECT_IGNORE_BATTLE_TARGET)
e8:SetRange(LOCATION_MZONE)
e8:SetReset(RESET_EVENT+0x47c0000)
tc:RegisterEffect(e8)
Duel.SpecialSummonComplete()
......@@ -112,7 +93,7 @@ function c16625614.dbop(e,tp,eg,ep,ev,re,r,rp)
end
function c16625614.efilter(e,te)
local tc=te:GetHandler()
return tc~=e:GetHandler() and not tc:IsCode(94212438)
return not tc:IsCode(94212438)
end
function c16625614.condition(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer()
......
......@@ -51,6 +51,8 @@ function c18563744.activate(e,tp,eg,ep,ev,re,r,rp)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(c18563744.efilter)
e3:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e3:SetOwnerPlayer(tp)
......
......@@ -2,6 +2,7 @@
function c39238953.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c39238953.cost)
......@@ -10,8 +11,8 @@ function c39238953.initial_effect(c)
c:RegisterEffect(e1)
end
function c39238953.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,2000)
else Duel.PayLPCost(tp,2000) end
if chk==0 then return Duel.CheckLPCost(tp,2000) end
Duel.PayLPCost(tp,2000)
end
function c39238953.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,0,LOCATION_DECK,1,nil)
......
......@@ -11,7 +11,7 @@ function c41175645.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_HAND)
e2:SetCondition(c41175645.spcon)
e2:SetOperation(c41175645.spop)
......
......@@ -14,7 +14,6 @@ function c80230510.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetTargetRange(LOCATION_HAND,0)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e1:SetCondition(c80230510.otcon)
e1:SetTarget(c80230510.ottg)
e1:SetOperation(c80230510.otop)
......@@ -45,7 +44,7 @@ function c80230510.otcon(e,c)
end
function c80230510.ottg(e,c)
local mi,ma=c:GetTributeRequirement()
return mi==2 or ma==2
return mi<=2 and ma>=2
end
function c80230510.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
......
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