From 6c74be5dfae04cef3155a3b3703956aff3e0cd9e Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 2 Feb 2020 15:45:12 +0100 Subject: [PATCH] Core/Spells: added another summon number restriction based on spell attribute research --- src/server/game/Spells/SpellEffects.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index c3c059013a7..6865ee6e041 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -1852,6 +1852,13 @@ void Spell::EffectSummonType(SpellEffIndex effIndex) if (properties->Flags & SUMMON_PROP_FLAG_TOTEM) numSummons = 1; + // Spells with SPELL_ATTR8_UNK21 have either a insane summon number in their basepoints or just 0. + // We assume that this attribute is setting the summon count to 1 if SPELL_ATTR8_UNK13 is not given + // SPELL_ATTR8_UNK13 seems to be indicating that we may summon multiple units at once outside of this rule + // To-do: give these attributes a name for their meaning + if (m_spellInfo->HasAttribute(SPELL_ATTR8_UNK21) && !m_spellInfo->HasAttribute(SPELL_ATTR8_UNK13)) + numSummons = 1; + switch (properties->Control) { case SUMMON_CATEGORY_WILD: