Core/Spells: Added safe-checks for places where caster/victim can be null.

And some random cleanup
This commit is contained in:
kaelima
2011-10-31 01:54:44 +01:00
parent ad1f1dad59
commit e16e18da23
3 changed files with 17 additions and 12 deletions
@@ -5599,6 +5599,9 @@ void AuraEffect::HandlePeriodicDummyAuraTick(Unit* target, Unit* caster) const
case 66149: // Bullet Controller Periodic - 10 Man
case 68396: // Bullet Controller Periodic - 25 Man
{
if (!caster)
break;
caster->CastCustomSpell(66152, SPELLVALUE_MAX_TARGETS, urand(1, 6), target, true);
caster->CastCustomSpell(66153, SPELLVALUE_MAX_TARGETS, urand(1, 6), target, true);
break;