forked from External/mage
changed how effects are applied for triggered abilities, added test (fixes #7083)
This commit is contained in:
parent
27a4f27727
commit
827ffb5fb2
3 changed files with 26 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ public class AttacksCreatureYouControlTriggeredAbility extends TriggeredAbilityI
|
|||
super(ability);
|
||||
this.filter = ability.filter;
|
||||
this.setTargetPointer = ability.setTargetPointer;
|
||||
this.once = ability.once;
|
||||
}
|
||||
|
||||
public void setOnce(boolean once) {
|
||||
|
|
@ -57,7 +58,6 @@ public class AttacksCreatureYouControlTriggeredAbility extends TriggeredAbilityI
|
|||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
game.applyEffects(); // Hooded Blightfang
|
||||
Permanent sourcePermanent = game.getPermanent(event.getSourceId());
|
||||
if (sourcePermanent != null && filter.match(sourcePermanent, sourceId, controllerId, game)) {
|
||||
if (setTargetPointer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue