Core/Unit: 229444b74a follow-up

- IsFocusing is made virtual again, so there's no need to keep a duplicated function

This reverts commit 5043639c56.
This commit is contained in:
ariel-
2017-04-27 10:59:09 -03:00
parent 229444b74a
commit 3ea46e57af
4 changed files with 6 additions and 23 deletions
+3
View File
@@ -3325,6 +3325,9 @@ bool Unit::IsMovementPreventedByCasting() const
if (spell->GetSpellInfo()->IsMoveAllowedChannel())
return false;
if (const_cast<Unit*>(this)->IsFocusing(nullptr, true))
return false;
// prohibit movement for all other spell casts
return true;
}