diff options
author | Shauren <shauren.trinity@gmail.com> | 2018-03-12 18:20:26 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2018-03-12 23:11:49 +0100 |
commit | 007b5a68c50bbee7d05acec888d3273c2a5a8577 (patch) | |
tree | 4818b60a73730b98ae4785d0630edbd6cd27d5bf /src/server/game/Spells/SpellEffects.cpp | |
parent | 50a912af72ca84095eab5effa7d70e8a50ff8a04 (diff) |
Core/DataStores: Fixed db2 structures after 7.3.5
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 4ba39388043..ceafaaf797f 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -2008,7 +2008,7 @@ void Spell::EffectSummonType(SpellEffIndex effIndex) break; } - switch (properties->Category) + switch (properties->Control) { case SUMMON_CATEGORY_WILD: case SUMMON_CATEGORY_ALLY: @@ -2018,7 +2018,7 @@ void Spell::EffectSummonType(SpellEffIndex effIndex) SummonGuardian(effIndex, entry, properties, numSummons); break; } - switch (properties->Type) + switch (properties->Title) { case SUMMON_TYPE_PET: case SUMMON_TYPE_GUARDIAN: @@ -2078,7 +2078,7 @@ void Spell::EffectSummonType(SpellEffIndex effIndex) if (!summon) continue; - if (properties->Category == SUMMON_CATEGORY_ALLY) + if (properties->Control == SUMMON_CATEGORY_ALLY) { summon->SetOwnerGUID(m_originalCaster->GetGUID()); summon->setFaction(m_originalCaster->getFaction()); @@ -5175,7 +5175,7 @@ void Spell::SummonGuardian(uint32 i, uint32 entry, SummonPropertiesEntry const* if (summon->HasUnitTypeMask(UNIT_MASK_GUARDIAN)) ((Guardian*)summon)->InitStatsForLevel(level); - if (properties && properties->Category == SUMMON_CATEGORY_ALLY) + if (properties && properties->Control == SUMMON_CATEGORY_ALLY) summon->setFaction(caster->getFaction()); if (summon->HasUnitTypeMask(UNIT_MASK_MINION) && m_targets.HasDst()) @@ -5681,7 +5681,7 @@ void Spell::EffectUpgradeHeirloom(SpellEffIndex /*effIndex*/) if (Player* player = m_caster->ToPlayer()) if (CollectionMgr* collectionMgr = player->GetSession()->GetCollectionMgr()) - collectionMgr->UpgradeHeirloom(m_misc.Raw.Data[0], m_castItemEntry); + collectionMgr->UpgradeHeirloom(m_misc.Raw.Data[0], int32(m_castItemEntry)); } void Spell::EffectApplyEnchantIllusion(SpellEffIndex /*effIndex*/) |