Commit c97c5f30 authored by mallu11's avatar mallu11 Committed by mercury233

fix 霊使 (#1310)

parent 2967b792
...@@ -43,6 +43,7 @@ function c30674956.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -43,6 +43,7 @@ function c30674956.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c30674956.spop(e,tp,eg,ep,ev,re,r,rp) function c30674956.spop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local zone=bit.band(e:GetHandler():GetLinkedZone(tp),0x1f) local zone=bit.band(e:GetHandler():GetLinkedZone(tp),0x1f)
if tc:IsRelateToEffect(e) and zone~=0 then if tc:IsRelateToEffect(e) and zone~=0 then
...@@ -51,7 +52,8 @@ function c30674956.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +52,8 @@ function c30674956.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c30674956.thcon(e,tp,eg,ep,ev,re,r,rp) function c30674956.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_DESTROY) and (c:IsReason(REASON_BATTLE) or (c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp)) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_LINK) return (c:IsReason(REASON_BATTLE) or (c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp and c:GetPreviousControler()==tp))
and c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_LINK)
end end
function c30674956.thfilter(c) function c30674956.thfilter(c)
return c:IsDefenseBelow(1500) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsAbleToHand() return c:IsDefenseBelow(1500) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsAbleToHand()
......
...@@ -43,6 +43,7 @@ function c48815792.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -43,6 +43,7 @@ function c48815792.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c48815792.spop(e,tp,eg,ep,ev,re,r,rp) function c48815792.spop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local zone=bit.band(e:GetHandler():GetLinkedZone(tp),0x1f) local zone=bit.band(e:GetHandler():GetLinkedZone(tp),0x1f)
if tc:IsRelateToEffect(e) and zone~=0 then if tc:IsRelateToEffect(e) and zone~=0 then
...@@ -51,7 +52,8 @@ function c48815792.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +52,8 @@ function c48815792.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c48815792.thcon(e,tp,eg,ep,ev,re,r,rp) function c48815792.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_DESTROY) and (c:IsReason(REASON_BATTLE) or (c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp)) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_LINK) return (c:IsReason(REASON_BATTLE) or (c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp and c:GetPreviousControler()==tp))
and c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_LINK)
end end
function c48815792.thfilter(c) function c48815792.thfilter(c)
return c:IsDefenseBelow(1500) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsAbleToHand() return c:IsDefenseBelow(1500) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsAbleToHand()
......
...@@ -16,7 +16,7 @@ function c86395581.initial_effect(c) ...@@ -16,7 +16,7 @@ function c86395581.initial_effect(c)
e2:SetDescription(aux.Stringid(86395581,1)) e2:SetDescription(aux.Stringid(86395581,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_DESTROYED) e2:SetCode(EVENT_BATTLE_DESTROYED)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e2:SetRange(LOCATION_HAND) e2:SetRange(LOCATION_HAND)
e2:SetCountLimit(1,100200273) e2:SetCountLimit(1,100200273)
...@@ -63,8 +63,8 @@ function c86395581.aclimit(e,re,tp) ...@@ -63,8 +63,8 @@ function c86395581.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsAttribute(ATTRIBUTE_WIND) return re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsAttribute(ATTRIBUTE_WIND)
end end
function c86395581.cfilter(c,tp) function c86395581.cfilter(c,tp)
return c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousControler()==tp and bit.band(c:GetPreviousAttributeOnField(),ATTRIBUTE_WIND)~=0 return c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousControler()==tp
and c:IsReason(REASON_BATTLE) and bit.band(c:GetPreviousAttributeOnField(),ATTRIBUTE_WIND)~=0
end end
function c86395581.spcon(e,tp,eg,ep,ev,re,r,rp) function c86395581.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c86395581.cfilter,1,nil,tp) and not eg:IsContains(e:GetHandler()) return eg:IsExists(c86395581.cfilter,1,nil,tp) and not eg:IsContains(e:GetHandler())
......
...@@ -43,6 +43,7 @@ function c97661969.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -43,6 +43,7 @@ function c97661969.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c97661969.spop(e,tp,eg,ep,ev,re,r,rp) function c97661969.spop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local zone=bit.band(e:GetHandler():GetLinkedZone(tp),0x1f) local zone=bit.band(e:GetHandler():GetLinkedZone(tp),0x1f)
if tc:IsRelateToEffect(e) and zone~=0 then if tc:IsRelateToEffect(e) and zone~=0 then
...@@ -51,7 +52,8 @@ function c97661969.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +52,8 @@ function c97661969.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c97661969.thcon(e,tp,eg,ep,ev,re,r,rp) function c97661969.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_DESTROY) and (c:IsReason(REASON_BATTLE) or (c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp)) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_LINK) return (c:IsReason(REASON_BATTLE) or (c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp and c:GetPreviousControler()==tp))
and c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_LINK)
end end
function c97661969.thfilter(c) function c97661969.thfilter(c)
return c:IsDefenseBelow(1500) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsAbleToHand() return c:IsDefenseBelow(1500) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsAbleToHand()
......
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