Consistency/data/entities/animals/boss_wizard/debuff_init.lua

13 lines
298 B
Lua
Raw Normal View History

2021-08-20 01:53:47 +00:00
dofile_once("data/scripts/lib/utilities.lua")
local entity_id = GetUpdatedEntityID()
local p = EntityGetWithTag( "player_unit" )
if ( #p > 0 ) then
local pl = p[1]
local eid = EntityLoad( "data/entities/animals/boss_wizard/debuff.xml" )
EntityAddChild( pl, eid )
end
EntityKill( entity_id )