[10866] Unsummon guardians at re-cast only for non-triggered case.

This commit is contained in:
VladimirMangos 2010-12-13 07:22:12 +03:00
parent af66b470a8
commit f228a1c08d
2 changed files with 3 additions and 3 deletions

View file

@ -4628,8 +4628,8 @@ void Spell::DoSummonGuardian(SpellEffectIndex eff_idx, uint32 forceFaction)
PetType petType = propEntry->Title == UNITNAME_SUMMON_TITLE_COMPANION ? PROTECTOR_PET : GUARDIAN_PET;
// second cast unsummon guardian(s) (guardians without like functionality have cooldown > spawn time)
if (m_caster->GetTypeId() == TYPEID_PLAYER)
// second direct cast unsummon guardian(s) (guardians without like functionality have cooldown > spawn time)
if (!m_IsTriggeredSpell && m_caster->GetTypeId() == TYPEID_PLAYER)
{
bool found = false;
// including protector