diff --git a/resources/plugins/splashdamage2/Splash_Damage_2_0.lua b/resources/plugins/splashdamage2/Splash_Damage_2_0.lua index 27a38034..f54423e5 100644 --- a/resources/plugins/splashdamage2/Splash_Damage_2_0.lua +++ b/resources/plugins/splashdamage2/Splash_Damage_2_0.lua @@ -683,7 +683,7 @@ end function destroyedBda(unit) if unit == nil then gameMsg("BDA: target destroyed") - elseif unit:getName() == nil then + elseif unit:getTypeName() == nil then gameMsg("BDA: target destroyed") else gameMsg("BDA: "..unit:getTypeName().." critically damaged")