aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-23 01:08:09 -0500
committermegamage <none@none>2009-08-23 01:08:09 -0500
commitdee4a9fd872c28587efe18f6859b91ce3d5ae805 (patch)
treee1839645709ee3e693a22bdb489c41499b98504f /src/game/Unit.cpp
parentb35fe879ad812947a50666ccc41d3603227291f9 (diff)
*Update flame leviathan script.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp5
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;
}