[*] If unit is being attack by MissileClipToTarget and it is removed from the map(transport,...), no damage is inflicted
This commit is contained in:
parent
262b1571f9
commit
45441a848a
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ void MissileClipToTarget::Action()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->NextMissileFrame(1, 0)) {
|
if (this->NextMissileFrame(1, 0)) {
|
||||||
if (this->SourceUnit && this->SourceUnit->IsAliveOnMap()) {
|
if (this->SourceUnit && this->SourceUnit->IsAliveOnMap() && this->TargetUnit->IsAliveOnMap()) {
|
||||||
this->MissileHit();
|
this->MissileHit();
|
||||||
}
|
}
|
||||||
this->TTL = 0;
|
this->TTL = 0;
|
||||||
|
|
Loading…
Reference in a new issue