From 56463171b32b8313266054b7814cbc44c6c1eaf5 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Lisboa Date: Fri, 8 Nov 2024 12:11:40 -0300 Subject: [PATCH] fix: object variable renamed (#3082) fixed the cobras console error, the problem was being caused because of the object name handleCobraOnSpawn --- data-otservbr-global/monster/humans/cobra_assassin.lua | 2 +- data-otservbr-global/monster/humans/cobra_scout.lua | 2 +- data-otservbr-global/monster/humans/cobra_vizier.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data-otservbr-global/monster/humans/cobra_assassin.lua b/data-otservbr-global/monster/humans/cobra_assassin.lua index 90a753a9c33..fa834503e56 100644 --- a/data-otservbr-global/monster/humans/cobra_assassin.lua +++ b/data-otservbr-global/monster/humans/cobra_assassin.lua @@ -122,7 +122,7 @@ monster.immunities = { } mType.onSpawn = function(monster) - self:handleCobraOnSpawn() + monster:handleCobraOnSpawn() end mType:register(monster) diff --git a/data-otservbr-global/monster/humans/cobra_scout.lua b/data-otservbr-global/monster/humans/cobra_scout.lua index f127abc81ee..6fc3e893497 100644 --- a/data-otservbr-global/monster/humans/cobra_scout.lua +++ b/data-otservbr-global/monster/humans/cobra_scout.lua @@ -127,7 +127,7 @@ monster.immunities = { } mType.onSpawn = function(monster) - self:handleCobraOnSpawn() + monster:handleCobraOnSpawn() end mType:register(monster) diff --git a/data-otservbr-global/monster/humans/cobra_vizier.lua b/data-otservbr-global/monster/humans/cobra_vizier.lua index 47ccb6b58c4..934b015842a 100644 --- a/data-otservbr-global/monster/humans/cobra_vizier.lua +++ b/data-otservbr-global/monster/humans/cobra_vizier.lua @@ -130,7 +130,7 @@ monster.immunities = { } mType.onSpawn = function(monster) - self:handleCobraOnSpawn() + monster:handleCobraOnSpawn() end mType:register(monster)