[svn] * Little fix in RandomMovementGenerator
* Updated to 6731 and 680 --HG-- branch : trunk rename : 6721-676 => 6731-680
This commit is contained in:
1 parent
010ed993e1
commit
1fc5c0d6d7
49 files changed
+7104
-6884
No files matched your search
@@ -3681,6 +3681,11 @@ uint8 Spell::CanCast(bool strict)
|
||||
(!m_targets.getItemTarget() || !m_targets.getItemTarget()->GetProto()->LockID || m_targets.getItemTarget()->GetOwner() != m_caster ) )
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
|
||||
// In BattleGround players can use only flags and banners
|
||||
if( ((Player*)m_caster)->InBattleGround() &&
|
||||
!((Player*)m_caster)->isAllowUseBattleGroundObject() )
|
||||
return SPELL_FAILED_TRY_AGAIN;
|
||||
|
||||
// get the lock entry
|
||||
LockEntry const *lockInfo = NULL;
|
||||
if (GameObject* go=m_targets.getGOTarget())
|
||||
|
||||
Reference in new issue
Block a user