-- 星辰勘测
-- 本文件由工具自动生成,请不要直接编辑本文件
---------------------------------------------
-- 技能基类
Skill403100304 = oo.class(SkillBase)
function Skill403100304:Init(skillID, card)
	SkillBase.Init(self, skillID, card)
end
-- 执行技能
function Skill403100304:DoSkill(caster, target, data)
	-- 12004
	self.order = self.order + 1
	self:DamageLight(SkillEffect[12004], caster, target, data, 0.25,4)
end
-- 行动开始
function Skill403100304:OnActionBegin(caster, target, data)
	-- 8060
	if SkillJudger:CasterIsSelf(self, caster, target, true) then
	else
		return
	end
	-- 8200
	if SkillJudger:IsCurrSkill(self, caster, target, true) then
	else
		return
	end
	-- 403100301
	self:AddBuff(SkillEffect[403100301], caster, self.card, data, 403100301)
end
-- 伤害后
function Skill403100304:OnAfterHurt(caster, target, data)
	-- 403100310
	self:tFunc_403100310_403100311(caster, target, data)
	self:tFunc_403100310_403100312(caster, target, data)
end
-- 伤害前
function Skill403100304:OnBefourHurt(caster, target, data)
	-- 8060
	if SkillJudger:CasterIsSelf(self, caster, target, true) then
	else
		return
	end
	-- 8200
	if SkillJudger:IsCurrSkill(self, caster, target, true) then
	else
		return
	end
	-- 8635
	local count635 = SkillApi:BuffCount(self, caster, target,3,4,403100201)
	-- 8835
	if SkillJudger:Greater(self, caster, target, true,count635,0) then
	else
		return
	end
	-- 8832
	if SkillJudger:IsProgressLess(self, caster, target, true,10) then
	else
		return
	end
	-- 403100314
	self:AddTempAttr(SkillEffect[403100314], caster, self.card, data, "damage",1.5)
end
function Skill403100304:tFunc_403100310_403100312(caster, target, data)
	-- 8060
	if SkillJudger:CasterIsSelf(self, caster, target, true) then
	else
		return
	end
	-- 8200
	if SkillJudger:IsCurrSkill(self, caster, target, true) then
	else
		return
	end
	-- 8635
	local count635 = SkillApi:BuffCount(self, caster, target,3,4,403100201)
	-- 8835
	if SkillJudger:Greater(self, caster, target, true,count635,0) then
	else
		return
	end
	-- 403100312
	if self:Rand(6000) then
		self:AddProgress(SkillEffect[403100312], caster, target, data, -200)
	end
end
function Skill403100304:tFunc_403100310_403100311(caster, target, data)
	-- 8060
	if SkillJudger:CasterIsSelf(self, caster, target, true) then
	else
		return
	end
	-- 8200
	if SkillJudger:IsCurrSkill(self, caster, target, true) then
	else
		return
	end
	-- 8635
	local count635 = SkillApi:BuffCount(self, caster, target,3,4,403100201)
	-- 8836
	if SkillJudger:Equal(self, caster, target, true,count635,0) then
	else
		return
	end
	-- 403100311
	if self:Rand(2500) then
		self:AddProgress(SkillEffect[403100311], caster, target, data, -200)
	end
end
