Fixed some bugs

This commit is contained in:
npx 2016-05-01 23:57:29 +02:00
parent 02f6d94ae7
commit b3f96e1cf0
3 changed files with 167 additions and 2782 deletions

View File

@ -1927,7 +1927,6 @@ minetest.register_entity(name, {
and math.random(1, 100) <= 60 then and math.random(1, 100) <= 60 then
self.timer = 0 self.timer = 0
minetest.chat_send_all("Sparo!")
set_animation(self, "dattack") --NSSM modification set_animation(self, "dattack") --NSSM modification
-- play shoot attack sound -- play shoot attack sound

View File

@ -186,12 +186,15 @@ nssm:register_arrow("nssm:phoenix_arrow", {
self.timer = os.time() self.timer = os.time()
end end
if os.time() - self.timer > 7 or minetest.is_protected(pos, "") or ((n~="air") and (n~="fire:basic_flame")) then if os.time() - self.timer > 5 or minetest.is_protected(pos, "") or ((n~="air") and (n~="fire:basic_flame")) then
self.object:remove() self.object:remove()
end end
minetest.env:set_node(pos, {name="fire:basic_flame"}) if math.random(1,2)==2 then
if math.random(1,3)==1 then minetest.env:set_node(pos, {name="fire:basic_flame"})
end
if math.random(1,6)==1 then
dx = math.random(-1,1) dx = math.random(-1,1)
dy = math.random(-1,1) dy = math.random(-1,1)
dz = math.random(-1,1) dz = math.random(-1,1)

File diff suppressed because it is too large Load Diff