Skip to content

Commit

Permalink
Removed redundant conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
Putnam3145 committed Apr 16, 2014
1 parent bd0bf0f commit b7fe154
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/mods/dark wizard tower/darkWizardTower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ dfhack.timeout(25,'ticks',checkUnitMarkedForLifeAndIfNotMarkOneRandomly)

fantasticEvents.onUnitSpawned.wizardTowerP=function(unit_id)
local unit = df.unit.find(unit_id)
if dfhack.units.isCitizen(unit) and not unitMarkedForLife(unit) then
if dfhack.units.isCitizen(unit) then
fuseUnit(unit,getMarkedUnit())
end
end

local checkAnyway=function()
local markedUnit=getMarkedUnit()
for k,unit in ipairs(df.global.world.units.active) do
Expand Down

0 comments on commit b7fe154

Please sign in to comment.