1
0
Fork 0

master #1

Merged
WolfySoy merged 1116 commits from VoxeLibre/VoxeLibre:master into PotionEffectTweaks 2024-07-02 11:49:28 +02:00
1 changed files with 8 additions and 3 deletions
Showing only changes of commit 8e103cf615 - Show all commits

View File

@ -35,14 +35,19 @@ function mob_class:day_docile()
end
end
-- attack player/mob
function mob_class:do_attack(player)
-- get this mob to attack the object
function mob_class:do_attack(object)
if self.state == "attack" or self.state == "die" then
return
end
self.attack = player
if object:is_player() and not minetest.settings:get_bool("enable_damage") then
return
end
self.attack = object
self.state = "attack"
-- TODO: Implement war_cry sound without being annoying