--「金手指」：攻擊時，如果目標等級低於自身，則5%機率使目標立即死亡

local value = 0 

function BeforeAttackUnit(info, damage)
	value = unit[Prop.Level] - damage.target[Prop.Level]

	if value > 10 then
		value = value * 1

		if math.random() <= value then
			damage.value = damage.target[Prop.HP]

		end
	end
end