mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[C21] Fixed Fractal Harness adding too many counters on attack (fixes #8377)
This commit is contained in:
parent
f48eb4a179
commit
e8db40bb8d
2 changed files with 4 additions and 5 deletions
|
|
@ -54,6 +54,8 @@ public class AttacksAttachedTriggeredAbility extends TriggeredAbilityImpl {
|
|||
if (equipment != null && equipment.getAttachedTo() != null
|
||||
&& event.getSourceId().equals(equipment.getAttachedTo())) {
|
||||
getEffects().setValue("sourceId", event.getSourceId());
|
||||
// TODO: Passing a permanent object like this can cause bugs. May need refactoring to use UUID instead.
|
||||
// See https://github.com/magefree/mage/issues/8377
|
||||
getEffects().setValue("attachedPermanent", game.getPermanent(event.getSourceId()));
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue