mirror of
https://github.com/araxiaonline/azerothshard-core.git
synced 2026-06-13 02:42:24 -04:00
[AZTH-MS] fix errors at update from AC
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "Common.h"
|
||||
#include "Define.h"
|
||||
#include "Config.h"
|
||||
#include "ItemPrototype.h"
|
||||
#include "ItemTemplate.h"
|
||||
#include "Player.h"
|
||||
|
||||
class Season
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user