WoW:API PetCanBeAbandoned: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m ({{wowapi}})
No edit summary
Line 17: Line 17:
----
----
;''Example''
;''Example''
   if ( PetCanBeAbandoned() ) then AbandonPet(); end
   if ( PetCanBeAbandoned() ) then PetAbandon(); end


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

Revision as of 17:57, 21 November 2006

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