mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Hot Soup fix (#4574)
This commit is contained in:
parent
4e02921f42
commit
c6bff105c6
1 changed files with 2 additions and 5 deletions
|
@ -104,10 +104,7 @@ class HotSoupTriggeredAbility extends TriggeredAbilityImpl {
|
|||
Permanent equipment = game.getPermanent(this.getSourceId());
|
||||
if (equipment != null && equipment.getAttachedTo() != null) {
|
||||
if (Objects.equals(event.getTargetId(), equipment.getAttachedTo())) {
|
||||
for(Effect effect : this.getEffects())
|
||||
{
|
||||
effect.setTargetPointer(new FixedTarget(equipment.getAttachedTo()));
|
||||
}
|
||||
this.getEffects().setTargetPointer(new FixedTarget(equipment.getAttachedTo(), game));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -118,4 +115,4 @@ class HotSoupTriggeredAbility extends TriggeredAbilityImpl {
|
|||
public String getRule() {
|
||||
return "Whenever equipped creature is dealt damage, " + super.getRule();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue