第121批续14:自然走动进入领地也触发违禁品没收(与传送5180同语义)
Auto Release / build (push) Successful in 2m24s

This commit is contained in:
youpaishidifu
2026-11-12 22:16:37 +08:00
parent 2ff99fee74
commit acdf28fd2b
@@ -3957,6 +3957,13 @@ public class AreaProtection implements Listener {
// 清除效果
clearBadEffects(p, newAc);
// ★ 第121批续14:自然走动进入领地也触发违禁品没收(与 onTeleport 5180 同语义)。
// 旧逻辑没收只在 4 个调用点(传送 5180 / handleInside 5226 / interact 6395 / 某 4636),
// 自然走动走进领地不触发 → 玩家「只拿了一个」自然进小黑塔却带 2 个走(没收没拦)。
if (!isExemptFromConfiscation(p, newArea)) {
handleConfiscate(p, newAc);
}
}
// ===== 清除指定效果 =====
if (newAc.clearEffects != null