function skill:on_add()
end
function skill:on_cast_start()
end
function skill:on_remove()
end
--声明技能类型
local mt = up.skill[134256632]
--技能-施法引导时
function mt:on_cast_channel()
--获取技能拥有者
local unit = self:get_owner()
--获取技能目标点/目标单位
local target = self:get_target()
local skill = self
local damage = 100
if target.type == 'unit' then
target = target:get_point()
end
--对目标点附近敌人造成伤害
for _,u in up.selector()
:in_range(target,300)
:is_enemy(unit)
:ipairs()
do
unit:damage{
target = u,
skill = skill,
damage = damage,
}
end
end
--ability_type 隐藏,普攻,通用,英雄
unit:add_skill(ability_type,id,slot)
local cd = skill:get_cd()
local level = skill:get_level()