Skip to content

Commit

Permalink
Added workaround for double spell cast disposal issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jaddie committed May 26, 2014
1 parent f559f6f commit 5b97eba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Services/WCell.RealmServer/Spells/SpellCast.AI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public partial class SpellCast
SpellFailedReason PrepareAI()
{
var caster = CasterUnit;
if (caster == null)
{
return SpellFailedReason.DontReport; //TODO: Prevent the spellcast from being disposed twice
}
SourceLoc = caster.Position;

if (caster.Target != null)
Expand Down

0 comments on commit 5b97eba

Please sign in to comment.