Modify param used when calling add_temp_img function

master
shivajiva101 2020-09-18 16:51:19 +01:00 committed by GitHub
parent fbcf885e6c
commit 9554f4e38c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -83,8 +83,7 @@ for i, v in ipairs(eggwars.arena[1].cs) do
eggs = match.player[attacker].eggs + 1
match.player[attacker].eggs = eggs
msg = victim .. "'s egg was destroyed by " .. attacker
eggwars.add_tmp_image(minetest.get_player_by_name(victim),
'eggwars_destroyed.png', 5)
eggwars.add_tmp_image(victim, 'eggwars_destroyed.png', 5)
eggwars.chat_send_match(key, msg)
eggwars.update_hud(key, match.player[victim].id)
eggwars.match[key] = match