fix(DB/Core): "Sons of Hodir" quests / areas (#2231)

This commit is contained in:
Stoabrogga
2019-09-04 16:43:44 +02:00
committed by GitHub
parent 213148f634
commit dbfa66c698
3 changed files with 175 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ void Vehicle::InstallAllAccessories(bool evading)
void Vehicle::Uninstall()
{
/// @Prevent recursive uninstall call. (Bad script in OnUninstall/OnRemovePassenger/PassengerBoarded hook.)
if (_status == STATUS_UNINSTALLING)
if (_status == STATUS_UNINSTALLING && !GetBase()->HasUnitTypeMask(UNIT_MASK_MINION))
{
sLog->outError("Vehicle GuidLow: %u, Entry: %u attempts to uninstall, but already has STATUS_UNINSTALLING! "
"Check Uninstall/PassengerBoarded script hooks for errors.", _me->GetGUIDLow(), _me->GetEntry());