// cal result of castout hit public List<cHitResult> CalSkillHitResult( cUnitData pAtker , cUnitData pDefer , int nSkillID ) { //cUnitData pAtker = GameDataManager.Instance.GetUnitDateByIdent( nAtker ); //Panel_StageUI.Instance.GetUnitByIdent( nAtker ); if ( (pAtker == null) || (pDefer == null) ) return null; List<cHitResult> resPool = new List<cHitResult> (); //resPool.Add ( new cHitResult( cHitResult._TYPE._HIT ,pAtker ) ); // not a really hit // SKILL Skill = pAtker.FightAttr.SkillData.skill; // if (Skill.n_TARGET == 0 ) { // self cast a buff // hit result // MyTool.DoSkillEffect( pAtker , pAtker.FightAttr.HitPool , Skill.s_CAST_TRIG , pAtker.FightAttr.HitEffPool , ref resPool ); pAtker.DoHitEffect(pDefer , ref resPool ); if (pDefer != null) { pDefer.DoBeHitEffect( pAtker , ref resPool ); } // MyScript.Instance.RunSkillEffect ( pAtker , null , pAtker.FightAttr.Skill.s_HIT_EFFECT , ref resPool ); // bad frame work //} return resPool; }