Re: Card Creation Request Thread
For the opponents' restriction, you could try something like this:BloodReyvyn wrote:Well, I have this so far, but not really sure how to handle limiting your opponents to only playing during their main phase, as I am still working on another card at the moment.
- Code: Select all
<STATIC_ABILITY filter_zone="ZONE_HAND">
-- localised text here
<FILTER>
return FilteredCard() ~= nil and
FilteredCard():GetPlayer():GetTeam() ~= EffectController():GetTeam()
</FILTER>
<CONTINUOUS_ACTION layer="8">
if FilteredCard() ~= nil then
if FilteredCard():GetPlayer():SorceryTime() == 0 then
FilteredCard():GetCurrentCharacteristics():Characteristic_Set( CHARACTERISTIC_CANT_BE_PLAYED, 1 )
end
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
If it works with ZONE_ANY, put ZONE_ANY on the other ability, too, but not inside the FILTER block: you should remove the zone restriction from the FILTER block and put it as a tag as I did in my piece of code.
(or whatever other cost)
(enabled only if you control a