Skip to content

Commit

Permalink
1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
irbizzelus authored May 20, 2023
1 parent 21f80ad commit 2cdb237
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lua/copmovement.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ Hooks:PostHook(CopMovement, "action_request", "IDC_post_action_request_tweak_uni
if #self._unit:contour()._contour_list >= 1 then

for i=1, #self._unit:contour()._contour_list do
if self._unit:contour()._contour_list[i].type == "friendly" then
-- yet another sanity check
if self._unit:contour()._contour_list[i] and self._unit:contour()._contour_list[i].type and self._unit:contour()._contour_list[i].type == "friendly" then
self._unit:contour():remove( "friendly" , true )
end
end
Expand Down
2 changes: 1 addition & 1 deletion main.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<mod name="Immortal Dominated Cops" author="irbizzelus" color="Color(0.85,0,0.85)">
<AssetUpdates id="irbizzelus/IMMDOMCOPS" provider="github" release="true" version="1.6"/>
<AssetUpdates id="irbizzelus/IMMDOMCOPS" provider="github" release="true" version="1.6.1"/>
</mod>
2 changes: 1 addition & 1 deletion mod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description" : "Gives immportality and visual highlights to dominated enemies.",
"author" : "irbizzelus\nBased on Undeadsewer's Intimidated Outlines",
"contact" : "Steam profile link is on my modworkshop account\nUndeadsewer: [email protected]",
"version" : "1.6",
"version" : "1.6.1",
"hooks" : [
{ "hook_id" : "lib/units/enemies/cop/copmovement", "script_path" : "lua/copmovement.lua" },
{ "hook_id" : "lib/units/enemies/cop/copdamage", "script_path" : "lua/copdamage.lua" },
Expand Down

0 comments on commit 2cdb237

Please sign in to comment.