Commit b013d235 authored by Hello23-Ygopro's avatar Hello23-Ygopro Committed by salix5

Update Magician Navigation (#736)

OCG effect is : 
②: If "Black Magician" exists in your field, you can exclude this card from the Graveyard and activate it for 1 Magic / Trap card on the face-up side of the opponent's field
Update for LOCATION_ONFIELD , same as : 
-Dark Magic Attack - https://github.com/Fluorohydride/ygopro-scripts/blob/master/c2314238.lua#L18
-Thousand Knives - https://github.com/Fluorohydride/ygopro-scripts/blob/master/c63391643.lua#L19
etc.

Also , cuz of EVENT_FREE_CHAIN , added ..
1) e1:SetHintTiming(0,TIMING_END_PHASE) , same as : 
- Eternal Soul ( Special Summon Effect ) - https://github.com/Fluorohydride/ygopro-scripts/blob/master/c48680970.lua#L7
- If I Activate Card Of Demise in my Dark Magician Deck , I cant Special Summon with Magician Navigation , so the game asks me in the Opponent's End Phase

2) e2:SetHintTiming(0,0x1c0) , same as : 
- D/D/D Cursed King Siegfried - https://github.com/Fluorohydride/ygopro-scripts/blob/master/c44852429.lua#L14
- Any Quick Negate Effect with no Special Condition ..
parent fc34bc5c
...@@ -5,6 +5,7 @@ function c7922915.initial_effect(c) ...@@ -5,6 +5,7 @@ function c7922915.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetTarget(c7922915.target) e1:SetTarget(c7922915.target)
e1:SetOperation(c7922915.activate) e1:SetOperation(c7922915.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -16,6 +17,7 @@ function c7922915.initial_effect(c) ...@@ -16,6 +17,7 @@ function c7922915.initial_effect(c)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,0x1c0)
e2:SetCondition(c7922915.negcon) e2:SetCondition(c7922915.negcon)
e2:SetCost(c7922915.negcost) e2:SetCost(c7922915.negcost)
e2:SetTarget(c7922915.negtg) e2:SetTarget(c7922915.negtg)
...@@ -54,7 +56,7 @@ function c7922915.cfilter(c) ...@@ -54,7 +56,7 @@ function c7922915.cfilter(c)
return c:IsCode(46986414) and c:IsFaceup() return c:IsCode(46986414) and c:IsFaceup()
end end
function c7922915.negcon(e,tp,eg,ep,ev,re,r,rp) function c7922915.negcon(e,tp,eg,ep,ev,re,r,rp)
return aux.exccon(e) and Duel.IsExistingMatchingCard(c7922915.cfilter,tp,LOCATION_MZONE,0,1,nil) return aux.exccon(e) and Duel.IsExistingMatchingCard(c7922915.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function c7922915.negcost(e,tp,eg,ep,ev,re,r,rp,chk) function c7922915.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
......
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