mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Permanent enchantment = game.getPermanent(this.getSourceId());
|
||||
Permanent enchantment = game.getPermanent(this.sourceId);
|
||||
if (enchantment != null
|
||||
&& enchantment.getAttachedTo() != null
|
||||
&& game.getControllerId(event.getSourceId()).equals(enchantment.getAttachedTo())
|
||||
&& game.getPermanent(this.getSourceId()).isCreature()) {
|
||||
&& game.getControllerId(event.getTargetId()).equals(enchantment.getAttachedTo())
|
||||
&& game.getPermanent(event.getTargetId()).isCreature()) {
|
||||
for (Effect effect : this.getEffects()) {
|
||||
effect.setTargetPointer(new FixedTarget(enchantment.getAttachedTo()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue