*Update flame leviathan script.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-08-23 01:08:09 -05:00
1 parent b35fe879ad
commit dee4a9fd87
12 files changed
+247 -54

No files matched your search

+3 -2
View File
@@ -10524,8 +10524,9 @@ bool Unit::canAttack(Unit const* target, bool force) const
if(target->GetVisibility() == VISIBILITY_GROUP_STEALTH && !canDetectStealthOf(target, GetDistance(target)))
return false;
if(target == m_Vehicle)
return false;
if(m_Vehicle)
if(target == m_Vehicle || m_Vehicle->m_Vehicle && target == m_Vehicle->m_Vehicle)
return false;
return true;
}