View Single Post
04/06/21, 10:53 AM   #3
IsJustaGhost
AddOn Author - Click to view addons
Join Date: May 2020
Posts: 38
Thank you for suggesting to look at Dolgubons Lazy Writ Carfter. I would never have thought of the following.

This super simple code will disable the ability to interact with target if condition is met.

Code:
	
	local oldInteract = FISHING_MANAGER.StartInteraction
	local function hook(...)
		if self.disableInteract then -- condition to disable interaction
			return true
		else
			return oldInteract(...)
		end
	end

	FISHING_MANAGER.StartInteraction = hook
  Reply With Quote