API SpellGetVisibilityInfo

From Wowpedia
Jump to: navigation, search

Checks if the spell should be visible, depending on spellId and raid combat status

hasCustom, alwaysShowMine, showForMySpec = SpellGetVisibilityInfo(spellId, visType)

Arguments

spellId : Integer - The ID of the spell to check
visType : String - either "RAID_INCOMBAT" if in combat, "RAID_OUTOFCOMBAT" otherwise

Returns

hasCustom 
Boolean - whether the spell visibility should be customized, if false it means always display
alwaysShowMine 
Boolean - whether to show the spell if cast by the player/player's pet/vehicle (e.g. the Paladin Forbearance debuff)
showForMySpec 
Boolean - whether to show the spell for the current specialization of the player

Details

This is used by Blizzard's compact frame, for whether it should be shown in the raid UI.