From 09892bf1f238312da10b1baa462b59b7245181d2 Mon Sep 17 00:00:00 2001 From: bobwoco Date: Fri, 12 May 2023 02:53:08 -0500 Subject: [PATCH] Fix Slayer's cleaver implementation to check if attached permanent can be blocked instead of the equipment (#10327) Co-authored-by: Ethan Ward --- Mage.Sets/src/mage/cards/s/SlayersCleaver.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/s/SlayersCleaver.java b/Mage.Sets/src/mage/cards/s/SlayersCleaver.java index 1f498eece0..c526280d40 100644 --- a/Mage.Sets/src/mage/cards/s/SlayersCleaver.java +++ b/Mage.Sets/src/mage/cards/s/SlayersCleaver.java @@ -60,7 +60,13 @@ class SlayersCleaverEffect extends RequirementEffect { @Override public boolean applies(Permanent permanent, Ability source, Game game) { - return permanent.canBlock(source.getSourceId(), game) && permanent.hasSubtype(SubType.ELDRAZI, game); + Permanent equipment = game.getPermanent(source.getSourceId()); + if (equipment == null || equipment.getAttachedTo() == null) { + return false; + } + Permanent attachedCreature = game.getPermanent(equipment.getAttachedTo()); + return attachedCreature != null && attachedCreature.isAttacking() + && permanent.canBlock(equipment.getAttachedTo(), game) && permanent.hasSubtype(SubType.ELDRAZI, game); } @Override