Commit 4027b452 authored by VanillaSalt's avatar VanillaSalt

fix

parent 3e726c8e
...@@ -30,7 +30,7 @@ function c42386471.initial_effect(c) ...@@ -30,7 +30,7 @@ function c42386471.initial_effect(c)
local e6=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(42386471,0)) e6:SetDescription(aux.Stringid(42386471,0))
e6:SetCategory(CATEGORY_HANDES) e6:SetCategory(CATEGORY_HANDES)
e6:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e6:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e6:SetCode(EVENT_BATTLE_DAMAGE) e6:SetCode(EVENT_BATTLE_DAMAGE)
e6:SetCondition(c42386471.condition) e6:SetCondition(c42386471.condition)
e6:SetTarget(c42386471.target) e6:SetTarget(c42386471.target)
...@@ -67,7 +67,7 @@ function c42386471.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,7 +67,7 @@ function c42386471.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp return ep~=tp
end end
function c42386471.target(e,tp,eg,ep,ev,re,r,rp,chk) function c42386471.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return Duel.GetFieldGroupCount(ep,LOCATION_HAND,0)>0 end
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,1-tp,1) Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,1-tp,1)
end end
function c42386471.operation(e,tp,eg,ep,ev,re,r,rp) function c42386471.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -27,8 +27,7 @@ function c54306223.initial_effect(c) ...@@ -27,8 +27,7 @@ function c54306223.initial_effect(c)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(54306223,1)) e4:SetDescription(aux.Stringid(54306223,1))
e4:SetCategory(CATEGORY_DESTROY) e4:SetCategory(CATEGORY_DESTROY)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e4:SetRange(LOCATION_FZONE)
e4:SetCode(54306223) e4:SetCode(54306223)
e4:SetTarget(c54306223.destg) e4:SetTarget(c54306223.destg)
e4:SetOperation(c54306223.desop) e4:SetOperation(c54306223.desop)
...@@ -66,7 +65,7 @@ function c54306223.acop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +65,7 @@ function c54306223.acop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.RaiseEvent(e:GetHandler(),54306223,e,0,0,0,0) Duel.RaiseSingleEvent(e:GetHandler(),54306223,e,0,0,0,0)
end end
end end
function c54306223.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c54306223.destg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -22,7 +22,7 @@ function c6691855.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -22,7 +22,7 @@ function c6691855.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c6691855.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c6691855.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c6691855.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c6691855.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectTarget(tp,c6691855.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,c6691855.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end end
function c6691855.operation(e,tp,eg,ep,ev,re,r,rp) function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
...@@ -46,6 +46,7 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,6 +46,7 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCondition(c6691855.damcon) e2:SetCondition(c6691855.damcon)
e2:SetOperation(c6691855.damop) e2:SetOperation(c6691855.damop)
e2:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--Equip limit --Equip limit
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -57,7 +58,7 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +58,7 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
end end
function c6691855.damcon(e) function c6691855.damcon(e,tp,eg,ep,ev,re,r,rp)
local eq=e:GetHandler():GetEquipTarget() local eq=e:GetHandler():GetEquipTarget()
return eq:IsRelateToBattle() and eq:IsDefencePos() return eq:IsRelateToBattle() and eq:IsDefencePos()
end end
......
...@@ -10,6 +10,7 @@ function c94739788.initial_effect(c) ...@@ -10,6 +10,7 @@ function c94739788.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_REMOVE_BRAINWASHING) e2:SetCode(EFFECT_REMOVE_BRAINWASHING)
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
c:RegisterEffect(e2) c:RegisterEffect(e2)
......
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