Skip to content

Commit

Permalink
Update eradicator_transform.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano authored Jan 20, 2024
1 parent 663cbd5 commit e40df2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function eradicatorTransform.onThink(creature)
local bossHealth = creature:getHealth()
creature:remove()

local eradicatorWeak = Game.getStorageValue(GlobalStorage.HeartOfDestruction.EradicatorWeak) > 0 and Game.getStorageValue(GlobalStorage.HeartOfDestruction.EradicatorWeak) or 0
local eradicatorWeak = Game.getStorageValue(GlobalStorage.HeartOfDestruction.EradicatorWeak) > 0 and 1 or 0
local monsterName = eradicatorWeak == 1 and "Eradicator" or "Eradicator2"
local monster = Game.createMonster(monsterName, bossPosition, false, true)
if not monster then
Expand Down

0 comments on commit e40df2a

Please sign in to comment.