Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
- index f0d0fc5..baf12a4 100644
- --- a/src/server/game/Spells/SpellEffects.cpp
- +++ b/src/server/game/Spells/SpellEffects.cpp
- @@ -2031,8 +2031,8 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
- m_caster->GetCreatureListWithEntryInGrid(summons, 47649, 50.f);
- for (std::list<Creature*>::iterator itr = summons.begin(); itr != summons.end(); ++itr)
- {
- - if (!(*itr) || !(*itr)->isAlive())
- - continue;
- + if (!(*itr) || !(*itr)->isAlive()
- + || (*itr)->GetOwnerGUID() != m_caster->GetGUID())
- + continue;
- (*itr)->SetVisible(true);
- m_caster->CastSpell((*itr), 78777, true);
- @@ -4163,10 +4163,14 @@ void Spell::EffectSummonType(SpellEffIndex effIndex)
- {
- amount = 1;
- std::list<Creature*> summons;
- + uint32 num = 0;
- m_originalCaster->GetCreatureListWithEntryInGrid(summons, 47649, 50.f);
- - if (summons.size() >= 3)
- + if (summons.size() > 0)
- + for (std::list<Creature*>::const_iterator itr = summons.begin(); itr != summons.end(); ++itr)
- + if ((*itr)->GetOwnerGUID() == m_originalCaster->GetGUID())
- + num++;
- + if (num >= 3)
- return;
- -
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment