mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
Added more checks on mounting vehicles or mounts that may or may not be a pet mount.
This commit is contained in:
@@ -177,8 +177,7 @@ public class vehicle_base extends script.base_script
|
||||
{
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
boolean isMountedOn = isMountedOnCreatureQueried(self, player);
|
||||
if ((item != menu_info_types.SERVER_VEHICLE_ENTER_EXIT) && (player != getMaster(self)))
|
||||
if (item != menu_info_types.SERVER_VEHICLE_ENTER_EXIT && pet_lib.isPet(self) && pet_lib.hasMaster(self) && player != getMaster(self))
|
||||
{
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
@@ -202,7 +201,7 @@ public class vehicle_base extends script.base_script
|
||||
if (getMountsEnabled())
|
||||
{
|
||||
debugServerConsoleMsg(player, "+++ pet . onObjectMenuSelect +++ getMountsEneabled returnted TRUE");
|
||||
if (isMountedOn)
|
||||
if (isMountedOnCreatureQueried(self, player))
|
||||
{
|
||||
queueCommand(player, (117012717), self, creature_name, COMMAND_PRIORITY_FRONT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user