[DSC] Implement The Lord of Pain. (#12940)

Also adds "their" to the text that CardUtil.addArticle supports and fixes a range of influence bug in SpellCastAllTriggeredAbility.
This commit is contained in:
Grath 2024-09-29 13:12:31 -04:00 committed by GitHub
parent 3ed75e668e
commit e5a351ff58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 145 additions and 1 deletions

View file

@ -60,7 +60,8 @@ public class SpellCastAllTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
Spell spell = game.getStack().getSpell(event.getTargetId());
if (!filter.match(spell, getControllerId(), this, game)) {
if (!filter.match(spell, getControllerId(), this, game)
|| !game.getState().getPlayersInRange(getControllerId(), game, false).contains(event.getPlayerId())) {
return false;
}
getEffects().setValue("spellCast", spell);

View file

@ -1032,6 +1032,7 @@ public final class CardUtil {
|| text.startsWith("any ")
|| text.startsWith("{this} ")
|| text.startsWith("your ")
|| text.startsWith("their ")
|| text.startsWith("one ")) {
return text;
}