Skip to content

Commit

Permalink
fix: hazard
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Dec 19, 2024
1 parent 4fe94c6 commit 93e7da6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion data/scripts/lib/register_monster_type.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ registerMonsterType.enemyFactions = function(mtype, mask)
end
end
registerMonsterType.flags = function(mtype, mask)
-- Try register hazard monsters
mtype.onSpawn = function(monster, spawnPosition)
HazardMonster.onSpawn(monster, spawnPosition)
end

if mask.flags then
if mask.flags.attackable ~= nil then
mtype:isAttackable(mask.flags.attackable)
Expand Down Expand Up @@ -196,7 +201,6 @@ registerMonsterType.flags = function(mtype, mask)
mtype:isRewardBoss(mask.flags.rewardBoss)
mtype.onSpawn = function(monster, spawnPosition)
monster:setRewardBoss()
HazardMonster.onSpawn(monster, spawnPosition)
end
end
if mask.flags.familiar then
Expand Down

0 comments on commit 93e7da6

Please sign in to comment.