Skip to content

Commit 26306ee

Browse files
committed
Reduce differences with 335 branch
1 parent 58c7097 commit 26306ee

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

‎src/server/game/Entities/Player/Player.cpp‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7919,7 +7919,7 @@ void Player::CastItemUseSpell(Item* item, uint32 spellId, SpellCastTargets const
79197919
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId);
79207920
if (!spellInfo)
79217921
{
7922-
TC_LOG_ERROR("entities.player", "Player::CastItemUseSpell: Item (Entry: {}) has wrong spell id {}, ignoring", item->GetEntry(), spellId);
7922+
TC_LOG_ERROR("entities.player", "Player::CastItemUseSpell: Item (Entry: {}) has wrong spell id {}, ignoring", item->GetEntry(), spellId);
79237923
return;
79247924
}
79257925

@@ -7947,16 +7947,16 @@ void Player::CastItemUseSpell(Item* item, uint32 spellId, SpellCastTargets const
79477947
{
79487948
TC_LOG_ERROR("entities.player", "Player::CastItemUseSpell: Tried to cast Spell {} not found on Item {}, ignoring", spellId, proto->GetId());
79497949
return;
7950-
}
7951-
7952-
Spell* spell = new Spell(this, spellInfo, TRIGGERED_NONE);
7953-
spell->m_fromClient = true;
7954-
spell->m_CastItem = item;
7955-
spell->m_cast_count = castCount; // set count of casts
7956-
spell->m_misc.Data = misc;
7957-
spell->prepare(targets);
79587950
}
79597951

7952+
Spell* spell = new Spell(this, spellInfo, TRIGGERED_NONE);
7953+
spell->m_fromClient = true;
7954+
spell->m_CastItem = item;
7955+
spell->m_cast_count = castCount; // set count of casts
7956+
spell->m_misc.Data = misc;
7957+
spell->prepare(targets);
7958+
}
7959+
79607960
void Player::_RemoveAllItemMods()
79617961
{
79627962
TC_LOG_DEBUG("entities.player.items", "_RemoveAllItemMods start.");
@@ -10986,7 +10986,7 @@ InventoryResult Player::CanStoreItems(Item** items, int count, uint32* itemLimit
1098610986
{
1098710987
for (uint32 j = 0; j < bag->GetBagSize(); j++)
1098810988
{
10989-
if (bagCounts[t - INVENTORY_SLOT_BAG_START][j] == 0)
10989+
if (bagCounts[t-INVENTORY_SLOT_BAG_START][j] == 0)
1099010990
{
1099110991
bagCounts[t-INVENTORY_SLOT_BAG_START][j] = remaining_count;
1099210992
bagPointers[t-INVENTORY_SLOT_BAG_START][j] = item;
@@ -11033,7 +11033,7 @@ InventoryResult Player::CanStoreItems(Item** items, int count, uint32* itemLimit
1103311033

1103411034
for (uint32 j = 0; j < bag->GetBagSize(); j++)
1103511035
{
11036-
if (bagCounts[t-INVENTORY_SLOT_BAG_START][j] == 0)
11036+
if (bagCounts[t - INVENTORY_SLOT_BAG_START][j] == 0)
1103711037
{
1103811038
bagCounts[t-INVENTORY_SLOT_BAG_START][j] = remaining_count;
1103911039
bagPointers[t-INVENTORY_SLOT_BAG_START][j] = item;
@@ -22665,7 +22665,7 @@ void Player::SendTransferAborted(uint32 mapid, TransferAbortReason reason, uint8
2266522665
transferAborted.Arg = arg;
2266622666
transferAborted.TransfertAbort = reason;
2266722667
SendDirectMessage(transferAborted.Write());
22668-
}
22668+
}
2266922669

2267022670
void Player::SendInstanceResetWarning(uint32 mapid, Difficulty difficulty, uint32 time, bool welcome) const
2267122671
{
@@ -25352,7 +25352,7 @@ void Player::BuildPlayerTalentsInfoData(WorldPackets::Talent::TalentInfoUpdate&
2535225352

2535325353
// find max talent rank (0~4)
2535425354
int8 curtalent_maxrank = -1;
25355-
for (int8 rank = MAX_TALENT_RANK-1; rank >= 0; --rank)
25355+
for (int8 rank = MAX_TALENT_RANK - 1; rank >= 0; --rank)
2535625356
{
2535725357
if (talent->SpellRank[rank] && HasTalent(talent->SpellRank[rank], specIdx))
2535825358
{
@@ -25370,7 +25370,7 @@ void Player::BuildPlayerTalentsInfoData(WorldPackets::Talent::TalentInfoUpdate&
2537025370
}
2537125371

2537225372
for (uint8 i = 0; i < MAX_GLYPH_SLOT_INDEX; ++i)
25373-
talentGroupInfo.GlyphIDs[i] = GetGlyph(specIdx, i); // GlyphProperties.dbc
25373+
talentGroupInfo.GlyphIDs[i] = GetGlyph(specIdx, i); // GlyphProperties.dbc
2537425374
}
2537525375
}
2537625376

0 commit comments

Comments
 (0)