Map pins: skip SetPassThroughButtons in combat

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-11-12 15:23:28 +00:00
parent 46fd5cb8a9
commit 25e3aa4fec
4 changed files with 20 additions and 3 deletions

View file

@ -554,7 +554,10 @@ function ShipRoutesPinMixin:OnAcquired(kind, a, b)
self.Label:Show()
end
self.Disc:SetVertexColor(0.06, 0.06, 0.08, 0.9)
self:CheckMouseButtonPassthrough("RightButton")
-- SetPassThroughButtons is protected in combat; a pin reused from the pool keeps its old setting
if not InCombatLockdown() then
self:CheckMouseButtonPassthrough("RightButton")
end
end
function ShipRoutesPinMixin:OnMouseEnter()