Core/Spells: added another attribute for summon number restrictions

This commit is contained in:
Ovahlord committed 2020-02-02 15:48:58 +01:00
1 parent 6c74be5dfa
commit 494404a549
1 file changed
+1 -1
+1 -1
View File
@@ -1856,7 +1856,7 @@ void Spell::EffectSummonType(SpellEffIndex effIndex)
// 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))
if (m_spellInfo->HasAttribute(SPELL_ATTR8_UNK21) && (!m_spellInfo->HasAttribute(SPELL_ATTR8_UNK13) && !m_spellInfo->HasAttribute(SPELL_ATTR10_UNK6)))
numSummons = 1;
switch (properties->Control)