Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ UnsignedInt WeaponTemplate::fireWeaponTemplate
}

//If we're launching a missile at a unit with valid countermeasures, then communicate it
if( projectile->isKindOf( KINDOF_SMALL_MISSILE ) && victimObj && victimObj->hasCountermeasures() )
if( projectile->isKindOf( KINDOF_SMALL_MISSILE ) && victimObj && !victimObj->isDestroyed() && victimObj->hasCountermeasures() )
{
const AIUpdateInterface *ai = victimObj->getAI();
//Only allow jets not currently supersonic to launch countermeasures
Expand Down Expand Up @@ -3647,4 +3647,7 @@ void WeaponBonusSet::appendBonuses(WeaponBonusConditionFlags flags, WeaponBonus&
}






Expand Down
1 change: 1 addition & 0 deletions tmp/weapon_patch_check.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
placeholder
Loading