aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-06 13:45:49 -0600
committermegamage <none@none>2009-01-06 13:45:49 -0600
commit3311f1ea0ecb6f578167b5791b106febbafd2efa (patch)
treeca93d40a14e7978f44a3296a623b7c96f135322f /src/game/Spell.cpp
parent2b21f0e7302cfdb0fc79e3255f80dc33b939c974 (diff)
*Mangos [7034] Add support 96 bit spell family mask to triggers. By DiSlord.
*Mangos [7035] Disable wrong use some spell effects (changed in 303). By DiSlord. *Mangos [7036] Implement one warlock glyph. By DiSlord. --HG-- branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index dd4079d5ff4..16e5ebd894f 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -4161,9 +4161,7 @@ uint8 Spell::CanCast(bool strict)
break;
}
- // This is generic summon effect now and don't make this check for summon types similar
- // SPELL_EFFECT_SUMMON_CRITTER, SPELL_EFFECT_SUMMON_WILD or SPELL_EFFECT_SUMMON_GUARDIAN.
- // These won't show up in m_caster->GetPetGUID()
+ // This is generic summon effect
case SPELL_EFFECT_SUMMON:
{
switch(m_spellInfo->EffectMiscValueB[i])
@@ -4184,10 +4182,8 @@ uint8 Spell::CanCast(bool strict)
}
break;
}
- // Don't make this check for SPELL_EFFECT_SUMMON_CRITTER, SPELL_EFFECT_SUMMON_WILD or SPELL_EFFECT_SUMMON_GUARDIAN.
- // These won't show up in m_caster->GetPetGUID()
+ // Not used for summon?
case SPELL_EFFECT_SUMMON_PHANTASM:
- case SPELL_EFFECT_SUMMON_DEMON:
{
if(m_caster->GetPetGUID())
return SPELL_FAILED_ALREADY_HAVE_SUMMON;