mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
[9440] Store in plauer spell list structure instead pointer.
Just not reason in element persistanse storage as std::map store pointer to structure with size < 16 bits.
This commit is contained in:
parent
528b2cf324
commit
6295275529
6 changed files with 71 additions and 80 deletions
|
|
@ -3141,7 +3141,7 @@ void Aura::HandleAuraModShapeshift(bool apply, bool Real)
|
|||
PlayerSpellMap const& sp_list = ((Player *)m_target)->GetSpellMap();
|
||||
for (PlayerSpellMap::const_iterator itr = sp_list.begin(); itr != sp_list.end(); ++itr)
|
||||
{
|
||||
if(itr->second->state == PLAYERSPELL_REMOVED) continue;
|
||||
if(itr->second.state == PLAYERSPELL_REMOVED) continue;
|
||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
|
||||
if (spellInfo && spellInfo->SpellFamilyName == SPELLFAMILY_WARRIOR && spellInfo->SpellIconID == 139)
|
||||
Rage_val += m_target->CalculateSpellDamage(spellInfo, EFFECT_INDEX_0, spellInfo->EffectBasePoints[EFFECT_INDEX_0], m_target) * 10;
|
||||
|
|
@ -5852,7 +5852,7 @@ void Aura::HandleShapeshiftBoosts(bool apply)
|
|||
const PlayerSpellMap& sp_list = ((Player *)m_target)->GetSpellMap();
|
||||
for (PlayerSpellMap::const_iterator itr = sp_list.begin(); itr != sp_list.end(); ++itr)
|
||||
{
|
||||
if (itr->second->state == PLAYERSPELL_REMOVED) continue;
|
||||
if (itr->second.state == PLAYERSPELL_REMOVED) continue;
|
||||
if (itr->first==spellId1 || itr->first==spellId2) continue;
|
||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
|
||||
if (!spellInfo || !(spellInfo->Attributes & (SPELL_ATTR_PASSIVE | (1<<7))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue