Skip to content

Commit

Permalink
fix: Grand Master Oberon Immunity and Butterfly's raceId
Browse files Browse the repository at this point in the history
It was setting him immune on the start immunity is already handled in his monster file.

Butterfly's had the wrong raceId's and and the Bestiary Kills weren't assigned properly.
  • Loading branch information
Jonyrewind committed Jan 29, 2025
1 parent 2ffb075 commit 5e2d32b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ monster.outfit = {
lookMount = 0,
}

monster.raceId = 213
monster.raceId = 227
monster.Bestiary = {
class = "Vermin",
race = BESTY_RACE_VERMIN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ monster.outfit = {
lookMount = 0,
}

monster.raceId = 227
monster.raceId = 235
monster.Bestiary = {
class = "Vermin",
race = BESTY_RACE_VERMIN,
Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/monster/vermins/butterfly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ monster.outfit = {
lookMount = 0,
}

monster.raceId = 213
monster.raceId = 227
monster.Bestiary = {
class = "Vermin",
race = BESTY_RACE_VERMIN,
Expand All @@ -31,7 +31,7 @@ monster.Bestiary = {
monster.health = 2
monster.maxHealth = 2
monster.race = "venom"
monster.corpse = 4378
monster.corpse = 4993
monster.speed = 160
monster.manaCost = 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,3 @@ function creaturescripts_library_bosses.onDeath(creature, corpse, killer, mostDa
end

creaturescripts_library_bosses:register()

local creaturescripts_library_bosses_oberon = CreatureEvent("oberonImmune")

function creaturescripts_library_bosses_oberon.onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
primaryDamage = 0
secondaryDamage = 0
return primaryDamage, primaryType, secondaryDamage, secondaryType
end

creaturescripts_library_bosses_oberon:register()

0 comments on commit 5e2d32b

Please sign in to comment.