Commit 5158efe1 authored by Hello23-Ygopro's avatar Hello23-Ygopro Committed by salix5

Update Dark Magic Expanded and so on (#734)

The effect is translated as :
①: The following effects are applied depending on the number of "black magician" "black magician girl" in each other field · cemetery. 

This effect also is " in each other field " , so make it LOCATION_ONFIELD in case of Dark Magicians being treated as Equip Cards , same as here : https://github.com/Fluorohydride/ygopro-scripts/pull/732

A lot of old cards i think need an update , if we follow that , especialy if it says "If "[X]" exists on field" , cuz if its says , "X monster" then u know its always LOCATION_MZONE , and u wont have to mention about the SZONE

Thank You!
parent b013d235
......@@ -17,7 +17,7 @@ function c111280.cfilter(c)
return c:IsFaceup() and c:IsCode(46986414,38033121)
end
function c111280.condition(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetMatchingGroupCount(c111280.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,nil)
local ct=Duel.GetMatchingGroupCount(c111280.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,nil)
return ct>0 and (Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated())
end
function c111280.filter(c)
......@@ -25,13 +25,13 @@ function c111280.filter(c)
end
function c111280.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local ct=Duel.GetMatchingGroupCount(c111280.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,nil)
local ct=Duel.GetMatchingGroupCount(c111280.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,nil)
if ct<=1 then return Duel.IsExistingMatchingCard(c111280.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
return true
end
end
function c111280.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c111280.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,nil)
local g=Duel.GetMatchingGroup(c111280.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,nil)
local ct=g:GetCount()
if ct>=1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
......
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