void Vehicle::Reset(bool evading /*= false*/) { if (GetBase()->GetTypeId() != TYPEID_UNIT) return; TC_LOG_DEBUG(LOG_FILTER_VEHICLES, "Vehicle::Reset (Entry: %u, GuidLow: %u, DBGuid: %u)", GetCreatureEntry(), _me->GetGUIDLow(), _me->ToCreature()->GetDBTableGUIDLow()); ApplyAllImmunities(); InstallAllAccessories(evading); sScriptMgr->OnReset(this); }
void Vehicle::Reset(bool evading /*= false*/) { if (GetBase()->GetTypeId() != TYPEID_UNIT) return; TC_LOG_DEBUG("entities.vehicle", "Vehicle::Reset (Entry: %u, GuidLow: %u, DBGuid: %u)", GetCreatureEntry(), _me->GetGUID().GetCounter(), _me->ToCreature()->GetSpawnId()); ApplyAllImmunities(); InstallAllAccessories(evading); sScriptMgr->OnReset(this); }
void Vehicle::Reset(bool evading /*= false*/) { if (_me->GetTypeId() == TYPEID_PLAYER) { if (_usableSeatNum) _me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_PLAYER_VEHICLE); } else { ApplyAllImmunities(); InstallAllAccessories(evading); if (_usableSeatNum) _me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK); } if (GetBase()->GetTypeId() == TYPEID_UNIT) sScriptMgr->OnReset(this); }
void Vehicle::Reset(bool evading /*= false*/) { sLog->outDebug(LOG_FILTER_VEHICLES, "Vehicle::Reset Entry: %u, GuidLow: %u", _creatureEntry, _me->GetGUIDLow()); if(_me->GetTypeId() == TYPEID_PLAYER) { if(_usableSeatNum) _me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_PLAYER_VEHICLE); } else { ApplyAllImmunities(); InstallAllAccessories(evading); if(_usableSeatNum) _me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK); } if(GetBase()->GetTypeId() == TYPEID_UNIT) sScriptMgr->OnReset(this); }