WoW:API PetCanBeAbandoned: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m ({{wowapi}})
m (Move page script moved page API PetCanBeAbandoned to API PetCanBeAbandoned without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 17: Line 17:
----
----
;''Example''
;''Example''
   if ( PetCanBeAbandoned() ) then AbandonPet(); end
   if ( PetCanBeAbandoned() ) then PetAbandon(); end


;''Result''
;''Result''
  true | false
  true | false

Latest revision as of 04:47, 15 August 2023

WoW API < PetCanBeAbandoned

Retuns true if the pet is abandonable.

canAbandon = PetCanBeAbandoned();

Arguments
none

Returns
canAbandon
canAbandon
Boolean - true if the player's pet can be abandoned.

Example
 if ( PetCanBeAbandoned() ) then PetAbandon(); end
Result
true | false