WoW API: IsFishingLoot

Revision as of 04:46, 15 August 2023 by Move page script (talk) (Move page script moved page API IsFishingLoot to API IsFishingLoot without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < IsFishingLoot

This function is only for determining if the loot window is related to fishing.


Returns

isTrue
Boolean - is it true

Example

This will identify that the loot window should display the fish graphic, then play the sound and update the image.

if( IsFishingLoot() ) then
   PlaySound("FISHING REEL IN");
   LootFramePortraitOverlay:SetTexture("Interface\\LootFrame\\FishingLoot-Icon");
end