mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[7716] Fixed some typos and possible crashes.
This commit is contained in:
parent
c2e6dd20dd
commit
c9d51a6dc7
25 changed files with 281 additions and 263 deletions
|
|
@ -2180,11 +2180,12 @@ void Aura::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;
|
||||
|
|
@ -2196,7 +2197,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
if( GetId()==24661 )
|
||||
{
|
||||
uint32 spellId = 24662;
|
||||
if (apply)
|
||||
if (apply && caster)
|
||||
{
|
||||
const SpellEntry *spell = sSpellStore.LookupEntry(spellId);
|
||||
if (!spell)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue