Commit f5ddfb2d authored by Vury Leo's avatar Vury Leo

trim

parent b04117e7
Pipeline #37085 failed with stages
in 1 minute and 23 seconds
......@@ -25,6 +25,7 @@ function s.fusfilter(c)
if material_count~=nil and #material_count>=2 then
if material_count[2]<3 then
return false
end
end
end
......
......@@ -2275,7 +2275,7 @@ FusionSpell = {}
--- Defaults to `LOCATION_HAND | LOCATION_MZONE`.
--- @field mat_operation_code_map? {[integer]:FUSION_OPERATION_CODE}[]
--- List of operations to perform on materials based on location.
--- Defaults to:
--- Defaults to:
--- ```lua
--- {
--- { [LOCATION_GRAVE] = FusionSpell.FUSION_OPERATION_BANISH },
......@@ -2717,6 +2717,7 @@ function FusionSpell.GetAllLocationsForTargetCard(tc,tp,pre_select_mat_location,
all_locations=all_locations|pre_select_mat_location
end
if post_select_mat_location~=nil then
all_locations=all_locations|post_select_mat_location
end
return all_locations
......@@ -3037,7 +3038,7 @@ end
--Returns the 1st EFFECT_EXTRA_FUSION_MATERIAL is applied on Card c.
--If summon_card is provided, it will filter on whether the effect's value function applies to that card.
---@param c Card the material card
---@param c Card the material card
---@param tp integer the player
---@param tc Card the target card
---@param pre_select_mat_location integer|FUSION_SPELL_PRE_SELECT_MAT_LOCATION_FUNCTION location where to find the materials before known the materials
......@@ -3051,7 +3052,7 @@ function FusionSpell.GetExtraMaterialEffect(c,tp,tc,pre_select_mat_location)
end
---@param extra_material_effect Effect the extra material effect
---@param mc Card the material card
---@param mc Card the material card
---@param tp integer the player
---@param tc Card the target card
---@param pre_select_mat_location integer|FUSION_SPELL_PRE_SELECT_MAT_LOCATION_FUNCTION location where to find the materials before known the materials
......@@ -3146,7 +3147,7 @@ function FusionSpell.GetFusionSpellFCheckAdditionalFunction(fusion_spell_additio
return false
end
end
local extra_mg=mg:Filter(FusionSpell.GetExtraMaterialEffect,nil,tp,tc,pre_select_mat_location)
return fusion_spell_additional_fcheck_function(f_tp,mg-extra_mg,fc,mg)
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