mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
[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:
parent
3ed75e668e
commit
e5a351ff58
4 changed files with 145 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue