Skip to content

Commit

Permalink
fix: object variable renamed (opentibiabr#3082)
Browse files Browse the repository at this point in the history
fixed the cobras console error, the problem was being caused because of
the object name handleCobraOnSpawn
  • Loading branch information
Glatharth authored Nov 8, 2024
1 parent dd746c8 commit 5646317
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/humans/cobra_assassin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ monster.immunities = {
}

mType.onSpawn = function(monster)
self:handleCobraOnSpawn()
monster:handleCobraOnSpawn()
end

mType:register(monster)
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/humans/cobra_scout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ monster.immunities = {
}

mType.onSpawn = function(monster)
self:handleCobraOnSpawn()
monster:handleCobraOnSpawn()
end

mType:register(monster)
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/humans/cobra_vizier.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ monster.immunities = {
}

mType.onSpawn = function(monster)
self:handleCobraOnSpawn()
monster:handleCobraOnSpawn()
end

mType:register(monster)

0 comments on commit 5646317

Please sign in to comment.