[AZTH-MS] fix errors at update from AC

This commit is contained in:
Winfidonarleyan
2019-09-05 02:03:58 +07:00
parent 2e3e9b19b3
commit cf81557b5b
10 changed files with 11 additions and 15 deletions

View File

@@ -824,7 +824,7 @@ public:
bool CanSellItem(Player* player, Item* item, Creature* creature) override
{
if (item->HasFlag(ITEM_FIELD_FLAGS, ITEM_FLAG_UNK1))
if (item->HasFlag(ITEM_FIELD_FLAGS, ITEM_FIELD_FLAG_UNK1))
{
player->SendSellError(SELL_ERR_CANT_SELL_ITEM, creature, item->GetGUID(), 0);
return false;
@@ -1126,7 +1126,7 @@ public:
return false;
// [AZTH] force soulbound using an unknown flag as workaround
if (item->HasFlag(ITEM_FIELD_FLAGS, ITEM_FLAG_UNK1))
if (item->HasFlag(ITEM_FIELD_FLAGS, ITEM_FIELD_FLAG_UNK1))
return false;
return true;

View File

@@ -1,7 +1,7 @@
#include "Common.h"
#include "Define.h"
#include "Config.h"
#include "ItemPrototype.h"
#include "ItemTemplate.h"
#include "Player.h"
class Season

View File

@@ -1,7 +1,7 @@
#include "ScriptMgr.h"
#include "Player.h"
#include "Item.h"
#include "ItemPrototype.h"
#include "ItemTemplate.h"
#include "Battleground.h"
#include "BattlegroundMgr.h"
#include "QueryResult.h"

View File

@@ -10,7 +10,7 @@
#include "GossipDef.h"
#include "Item.h"
#include "Group.h"
#include "ItemPrototype.h"
#include "ItemTemplate.h"
#include "Log.h"
#include "ObjectMgr.h"
#include "Opcodes.h"

View File

@@ -1,7 +1,7 @@
#include "ScriptMgr.h"
#include "Player.h"
#include "Item.h"
#include "ItemPrototype.h"
#include "ItemTemplate.h"
#include "Common.h"
#include "music.h"
#include "ScriptedCreature.h"
@@ -170,4 +170,4 @@ void AddSC_Jukebox()
new loadMusic();
new Jukebox();
new JukeboxSummon();
}
}

View File

@@ -205,7 +205,7 @@ public:
*/
// all items stored in pvp account should be soulbound
item->SetBinding(true);
item->ApplyModFlag(ITEM_FIELD_FLAGS, ITEM_FLAG_UNK1, true);
item->ApplyModFlag(ITEM_FIELD_FLAGS, ITEM_FIELD_FLAG_UNK1, true);
/* try to avoid for performances
SQLTransaction trans = CharacterDatabase.BeginTransaction();
item->SaveToDB(trans);

View File

@@ -247,7 +247,7 @@ public:
//soulbound with our special flag
item->SetBinding(true);
item->ApplyModFlag(ITEM_FIELD_FLAGS, ITEM_FLAG_UNK1, true);
item->ApplyModFlag(ITEM_FIELD_FLAGS, ITEM_FIELD_FLAG_UNK1, true);
setEnchantAndSocket(player, item, originalEntry, spec);
}

View File

@@ -5,7 +5,7 @@
#include "Define.h"
#include "Config.h"
#include "Item.h"
#include "ItemPrototype.h"
#include "ItemTemplate.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "Group.h"

View File

@@ -1,7 +1,7 @@
#include "ScriptMgr.h"
#include "Player.h"
#include "Item.h"
#include "ItemPrototype.h"
#include "ItemTemplate.h"
#include "Common.h"
#include "AZTH.h"

View File

@@ -498,10 +498,6 @@ void Vehicle::RelocatePassengers()
{
ASSERT(_me->GetMap());
// [AZTH]
std::vector<std::pair<Unit*, Position>> seatRelocation;
seatRelocation.reserve(Seats.size());
std::vector<std::pair<Unit*, Position>> seatRelocation;
seatRelocation.reserve(Seats.size());