Core/Spells: Fixed charge effects with non-explicit targets

This commit is contained in:
Shauren committed 2013-02-13 20:21:26 +01:00
1 parent 20cd6cfc61
commit d926ad63c0
9 files changed
+34 -30

No files matched your search

@@ -158,7 +158,7 @@ namespace Movement
{
PathGenerator path(unit);
bool result = path.CalculatePath(dest.x, dest.y, dest.z, forceDestination);
if (result && path.GetPathType() & ~PATHFIND_NOPATH)
if (result && !(path.GetPathType() & PATHFIND_NOPATH))
{
MovebyPath(path.GetPath());
return;