Check the teleport block against the power's category

City spire effects give players BlockedPowerType TELEPORT. TeleportPowerAction
checked TELEPORT for every teleport, so Infiltrate (SAB-001, category
SPIREPROOFTELEPORT) passed the cast check but never moved. Use the power's
category as finishUsePower does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-26 09:26:32 -04:00
1 parent 093b68258b
commit 29e1e51b04
1 file changed
+2 -1
@@ -73,7 +73,8 @@ public class TeleportPowerAction extends AbstractPowerAction {
return;
}
if (source.getBonuses().getBool(ModType.BlockedPowerType, SourceType.TELEPORT))
// Blocks go by power category, so SPIREPROOFTELEPORT (SAB-001) passes a TELEPORT block such as the spire's
if (source.getBonuses().getBool(ModType.BlockedPowerType, SourceType.GetSourceType(pb.getCategory())))
return;
City city = ZoneManager.getCityAtLocation(targetLoc);