Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.x
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
build/
|
build*/
|
||||||
.directory
|
.directory
|
||||||
.mailmap
|
.mailmap
|
||||||
*.orig
|
*.orig
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ bool IsDisabledFor(DisableType type, uint32 entry, Unit const* unit, uint8 flags
|
|||||||
if ((spellFlags & SPELL_DISABLE_PLAYER && unit->GetTypeId() == TYPEID_PLAYER) ||
|
if ((spellFlags & SPELL_DISABLE_PLAYER && unit->GetTypeId() == TYPEID_PLAYER) ||
|
||||||
(unit->GetTypeId() == TYPEID_UNIT && ((unit->ToCreature()->isPet() && spellFlags & SPELL_DISABLE_PET) || spellFlags & SPELL_DISABLE_CREATURE)))
|
(unit->GetTypeId() == TYPEID_UNIT && ((unit->ToCreature()->isPet() && spellFlags & SPELL_DISABLE_PET) || spellFlags & SPELL_DISABLE_CREATURE)))
|
||||||
{
|
{
|
||||||
if (flags & SPELL_DISABLE_MAP)
|
if (spellFlags & SPELL_DISABLE_MAP)
|
||||||
{
|
{
|
||||||
std::set<uint32> const& mapIds = itr->second.params[0];
|
std::set<uint32> const& mapIds = itr->second.params[0];
|
||||||
if (mapIds.find(unit->GetMapId()) != mapIds.end())
|
if (mapIds.find(unit->GetMapId()) != mapIds.end())
|
||||||
|
|||||||
@@ -387,7 +387,7 @@ void Pet::SavePetToDB(PetSaveMode mode)
|
|||||||
CharacterDatabase.EscapeString(name);
|
CharacterDatabase.EscapeString(name);
|
||||||
trans = CharacterDatabase.BeginTransaction();
|
trans = CharacterDatabase.BeginTransaction();
|
||||||
// remove current data
|
// remove current data
|
||||||
trans->PAppend("DELETE FROM character_pet WHERE owner = '%u' AND id = '%u'", owner, m_charmInfo->GetPetNumber());
|
trans->PAppend("DELETE FROM character_pet WHERE owner = '%u' AND id = '%u'", ownerLowGUID, m_charmInfo->GetPetNumber());
|
||||||
|
|
||||||
// prevent duplicate using slot (except PET_SAVE_NOT_IN_SLOT)
|
// prevent duplicate using slot (except PET_SAVE_NOT_IN_SLOT)
|
||||||
if (mode <= PET_SAVE_LAST_STABLE_SLOT)
|
if (mode <= PET_SAVE_LAST_STABLE_SLOT)
|
||||||
|
|||||||
Reference in New Issue
Block a user