diff options
author | megamage <none@none> | 2009-08-23 01:08:09 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-23 01:08:09 -0500 |
commit | dee4a9fd872c28587efe18f6859b91ce3d5ae805 (patch) | |
tree | e1839645709ee3e693a22bdb489c41499b98504f /src/game/Unit.cpp | |
parent | b35fe879ad812947a50666ccc41d3603227291f9 (diff) |
*Update flame leviathan script.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 294f1cd9168..58e4037b5c0 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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; } |