name: Shiranui
card_text: 1 Tuner + 1+ non-Tuner monsters
  You can only Special Summon "Shiranui Squiresaga(s)" once per turn. Once per turn: You can banish 1 face-up monster you control or in your GY, then apply these effects, in sequence, depending on what the monster was before it was banished, if it was any of these.
  ● Zombie: You can have all monsters you control gain 300 ATK.
  ● FIRE: You can destroy 1 Spell/Trap on the field.
  ● Synchro: You can destroy 1 monster on the field.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--limit SSummon
  	c:SetSPSummonOnce(id)
  	--synchro summon
  	aux.AddSynchroProcedure(c, nil, aux.NonTuner(nil), 1)
  	c:EnableReviveLimit()
  	--destroy
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_REMOVE)
  	e1:SetType(EFFECT_TYPE_IGNITION)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCountLimit(1)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.filter(c)
  	return c:IsAbleToRemove() and c:IsType(TYPE_MONSTER) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.IsExistingMatchingCard(s.filter, tp, LOCATION_MZONE + LOCATION_GRAVE, 0, 1, nil)
  	end
  	Duel.SetOperationInfo(0, CATEGORY_REMOVE, nil, 1, tp, LOCATION_MZONE + LOCATION_GRAVE)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_REMOVE)
  	local g = Duel.SelectMatchingCard(tp, aux.NecroValleyFilter(s.filter), tp, LOCATION_MZONE + LOCATION_GRAVE, 0, 1, 1, nil)
  	local tc = g:GetFirst()
  	if not tc then
  		return
  	end
  	local b1 = tc:IsRace(RACE_ZOMBIE)
  	local b2 = tc:IsAttribute(ATTRIBUTE_FIRE)
  	local b3 = tc:IsType(TYPE_SYNCHRO)
  	if Duel.Remove(tc, POS_FACEUP, REASON_EFFECT) ~= 0 then
  		local g1 = Duel.GetMatchingGroup(Card.IsFaceup, tp, LOCATION_MZONE, 0, nil)
  		local g2 = Duel.GetMatchingGroup(Card.IsType, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, nil, TYPE_SPELL + TYPE_TRAP)
  		local g3 = Duel.GetMatchingGroup(nil, tp, LOCATION_MZONE, LOCATION_MZONE, nil)
  		if b1 and #g1 > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 1)) then
  			local t1 = g1:GetFirst()
  			while t1 do
  				local e1 = Effect.CreateEffect(e:GetHandler())
  				e1:SetType(EFFECT_TYPE_SINGLE)
  				e1:SetCode(EFFECT_UPDATE_ATTACK)
  				e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
  				e1:SetReset(RESET_EVENT + RESETS_STANDARD)
  				e1:SetValue(300)
  				t1:RegisterEffect(e1)
  				t1 = g1:GetNext()
  			end
  		end
  		if b2 and #g2 > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 2)) then
  			Duel.BreakEffect()
  			Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
  			local t2 = g2:Select(tp, 1, 1, nil)
  			Duel.HintSelection(t2)
  			Duel.Destroy(t2, REASON_EFFECT)
  		end
  		if b3 and #g3 > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 3)) then
  			Duel.BreakEffect()
  			Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
  			local t3 = g3:Select(tp, 1, 1, nil)
  			Duel.HintSelection(t3)
  			Duel.Destroy(t3, REASON_EFFECT)
  		end
  	end
  end
  
  
source_text: Shiranui
  1 Tuner + 1+ non-Tuner monsters
  You can only Special Summon "Shiranui Squiresaga(s)" once per turn. Once per turn: You can banish 1 face-up monster you control or in your GY, then apply these effects, in sequence, depending on what the monster was before it was banished, if it was any of these.
  ● Zombie: You can have all monsters you control gain 300 ATK.
  ● FIRE: You can destroy 1 Spell/Trap on the field.
  ● Synchro: You can destroy 1 monster on the field.
target_text: -- Shiranui
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--limit SSummon
  	c:SetSPSummonOnce(id)
  	--synchro summon
  	aux.AddSynchroProcedure(c, nil, aux.NonTuner(nil), 1)
  	c:EnableReviveLimit()
  	--destroy
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_REMOVE)
  	e1:SetType(EFFECT_TYPE_IGNITION)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCountLimit(1)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.filter(c)
  	return c:IsAbleToRemove() and c:IsType(TYPE_MONSTER) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.IsExistingMatchingCard(s.filter, tp, LOCATION_MZONE + LOCATION_GRAVE, 0, 1, nil)
  	end
  	Duel.SetOperationInfo(0, CATEGORY_REMOVE, nil, 1, tp, LOCATION_MZONE + LOCATION_GRAVE)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_REMOVE)
  	local g = Duel.SelectMatchingCard(tp, aux.NecroValleyFilter(s.filter), tp, LOCATION_MZONE + LOCATION_GRAVE, 0, 1, 1, nil)
  	local tc = g:GetFirst()
  	if not tc then
  		return
  	end
  	local b1 = tc:IsRace(RACE_ZOMBIE)
  	local b2 = tc:IsAttribute(ATTRIBUTE_FIRE)
  	local b3 = tc:IsType(TYPE_SYNCHRO)
  	if Duel.Remove(tc, POS_FACEUP, REASON_EFFECT) ~= 0 then
  		local g1 = Duel.GetMatchingGroup(Card.IsFaceup, tp, LOCATION_MZONE, 0, nil)
  		local g2 = Duel.GetMatchingGroup(Card.IsType, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, nil, TYPE_SPELL + TYPE_TRAP)
  		local g3 = Duel.GetMatchingGroup(nil, tp, LOCATION_MZONE, LOCATION_MZONE, nil)
  		if b1 and #g1 > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 1)) then
  			local t1 = g1:GetFirst()
  			while t1 do
  				local e1 = Effect.CreateEffect(e:GetHandler())
  				e1:SetType(EFFECT_TYPE_SINGLE)
  				e1:SetCode(EFFECT_UPDATE_ATTACK)
  				e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
  				e1:SetReset(RESET_EVENT + RESETS_STANDARD)
  				e1:SetValue(300)
  				t1:RegisterEffect(e1)
  				t1 = g1:GetNext()
  			end
  		end
  		if b2 and #g2 > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 2)) then
  			Duel.BreakEffect()
  			Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
  			local t2 = g2:Select(tp, 1, 1, nil)
  			Duel.HintSelection(t2)
  			Duel.Destroy(t2, REASON_EFFECT)
  		end
  		if b3 and #g3 > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 3)) then
  			Duel.BreakEffect()
  			Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
  			local t3 = g3:Select(tp, 1, 1, nil)
  			Duel.HintSelection(t3)
  			Duel.Destroy(t3, REASON_EFFECT)
  		end
  	end
  end
  
  