mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
- Fixed Trespasser's Curse.
This commit is contained in:
parent
2c6be695ba
commit
6156ebf5b6
1 changed files with 3 additions and 3 deletions
|
@ -97,11 +97,11 @@ class TrespassersCurseTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
Permanent enchantment = game.getPermanent(this.getSourceId());
|
Permanent enchantment = game.getPermanent(this.sourceId);
|
||||||
if (enchantment != null
|
if (enchantment != null
|
||||||
&& enchantment.getAttachedTo() != null
|
&& enchantment.getAttachedTo() != null
|
||||||
&& game.getControllerId(event.getSourceId()).equals(enchantment.getAttachedTo())
|
&& game.getControllerId(event.getTargetId()).equals(enchantment.getAttachedTo())
|
||||||
&& game.getPermanent(this.getSourceId()).isCreature()) {
|
&& game.getPermanent(event.getTargetId()).isCreature()) {
|
||||||
for (Effect effect : this.getEffects()) {
|
for (Effect effect : this.getEffects()) {
|
||||||
effect.setTargetPointer(new FixedTarget(enchantment.getAttachedTo()));
|
effect.setTargetPointer(new FixedTarget(enchantment.getAttachedTo()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue