mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
[C16] Curse of Vengeance
Fix that the cure was triggering for all player loss events, not just for enchanted player.
This commit is contained in:
parent
245977bfaf
commit
b5eaf8d3d0
1 changed files with 4 additions and 4 deletions
|
@ -25,9 +25,9 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.cards.c;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.effects.Effect;
|
||||
|
@ -50,8 +50,9 @@ import mage.players.Player;
|
|||
import mage.target.TargetPlayer;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author spjspj
|
||||
*/
|
||||
public class CurseOfVengeance extends CardImpl {
|
||||
|
@ -147,13 +148,12 @@ class CurseOfVengeancePlayerLosesTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
System.out.println("Saw event of type: " + event.getType());
|
||||
return event.getType() == EventType.LOST;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
return true;
|
||||
return game.getPermanent(this.getSourceId()).getAttachedTo().equals(event.getPlayerId());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue