[Quest API] Add Pet Owner Methods to Perl/Lua (#4115)

* [Quest API] Add Pet Owner Methods to Perl/Lua

- Add `$mob->IsPetOwnerBot()`.
- Add `$mob->IsPetOwnerClient()`.
- Add `$mob->IsPetOwnerNPC()`.

- Add `mob:IsPetOwnerBot()`.
- Add `mob:IsPetOwnerClient()`.
- Add `mob:IsPetOwnerNPC()`.

- Allows operators to use these short hands instead of doing a `GetOwner() && GetOwner()->IsClient()`.

* Update npc.cpp
This commit is contained in:
Alex King
2024-02-25 00:38:34 -05:00
committed by GitHub
parent eb3664a444
commit 35fe38cd09
6 changed files with 60 additions and 7 deletions
+1
View File
@@ -392,6 +392,7 @@ Mob::Mob(
pet_stop = false;
pet_regroup = false;
_IsTempPet = false;
pet_owner_bot = false;
pet_owner_client = false;
pet_owner_npc = false;
pet_targetlock_id = 0;