[7716] Fixed some typos and possible crashes. Author: AlexDereka

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-27 18:42:35 -05:00
parent 5ac67c27f7
commit 09af28301e
24 changed files with 276 additions and 258 deletions
+3 -2
View File
@@ -2446,11 +2446,12 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real)
if( GetId()==24658 )
{
uint32 spellId = 24659;
if (apply)
if (apply && caster)
{
const SpellEntry *spell = sSpellStore.LookupEntry(spellId);
if (!spell)
return;
for (int i=0; i < spell->StackAmount; ++i)
caster->CastSpell(m_target, spell->Id, true, NULL, NULL, GetCasterGUID());
return;
@@ -2462,7 +2463,7 @@ void AuraEffect::HandleAuraDummy(bool apply, bool Real)
if( GetId()==24661 )
{
uint32 spellId = 24662;
if (apply)
if (apply && caster)
{
const SpellEntry *spell = sSpellStore.LookupEntry(spellId);
if (!spell)