| 
TA的每日心情|  | 衰 2024-1-8 14:04
 | 
|---|
 签到天数: 2 天 [LV.1]初来乍到 注册会员 
 
 
	积分85 
 | 
 
| attackdamage 里面放技能 明明没给触发伤害 还是重复触发了 
 function _AttackDamage(Actor, AttackTarget, nDamage, MagIdx)  --攻击前触发
 
 if (Actor.TargetCret ~= nil ) and Actor.TargetCret.iHandle == AttackTarget.iHandle then
 print(Actor.TargetCret.iHandle .. '第二刀的实际仇恨值目标')
 Actor.TargetCret = AttackTarget    --当前攻击目标设置为AttackTarget
 print('当前攻击目标设置为' .. AttackTarget.CharName)
 vvlib:action(Actor,RELEASEMAGICEX,1,0,3,1,0,0)     第六个参数不能关闭伤害触发,导致Actor一直放技能
 --Actor:UseSkill(11,false,3,1,0,2)
 
 end
 
 
 return nDamage
 end
 
 
 | 
 |