Ejemplo n.º 1
0
        public void OnAtkTargetDestroy(SkillSystem.SkEntity entity)
        {
            PeEntity peEntity = entity.GetComponent <PeEntity>();

            RemoveEnemy(peEntity);
            RomoveAtkTarget(peEntity);
        }
Ejemplo n.º 2
0
        public void  OnAtkTargetDeath(SkillSystem.SkEntity skSelf, SkillSystem.SkEntity skCaster)
        {
            PeEntity self = skSelf.GetComponent <PeEntity>();

            RemoveEnemy(self);
            RomoveAtkTarget(self);
            ClearCooper();
        }
Ejemplo n.º 3
0
        void OnSkillTarget(SkillSystem.SkEntity caster)
        {
            if (null == Entity || null == caster)
            {
                return;
            }

            PeEntity tarEntity = caster.GetComponent <PeEntity>();

            TransferHared(tarEntity, 10.0f);
        }
Ejemplo n.º 4
0
 void OnResponse(SkillSystem.SkEntity sk)
 {
     Pathea.PeEntity entity = sk.GetComponent <Pathea.PeEntity>();
     if (entity == null)
     {
         return;
     }
     if (PeScenarioUtility.IsObjectContainEntity(obj, entity))
     {
         Post();
     }
 }
Ejemplo n.º 5
0
        void OnDamage(SkillSystem.SkEntity entity, float damage)
        {
            if (null == Entity || null == entity)
            {
                return;
            }

            PeEntity peEntity = entity.GetComponent <PeEntity>();

            if (peEntity == Entity)
            {
                return;
            }

            TransferHared(peEntity, damage);
        }
Ejemplo n.º 6
0
 void OnResponse(SkillSystem.SkEntity self, SkillSystem.SkEntity caster, float value)
 {
     if (self == null || caster == null)
     {
         return;
     }
     Pathea.PeEntity selfEntity   = self.GetComponent <Pathea.PeEntity>();
     Pathea.PeEntity casterEntity = caster.GetComponent <Pathea.PeEntity>();
     if (selfEntity == null || casterEntity == null)
     {
         return;
     }
     if (PeScenarioUtility.IsObjectContainEntity(obj, selfEntity) &&
         PeScenarioUtility.IsObjectContainEntity(atk, casterEntity))
     {
         Post();
     }
 }
Ejemplo n.º 7
0
        void OnFollowerEntityDestroy(SkillSystem.SkEntity entity)
        {
            if (entity == null || entity.Equals(null))
            {
                return;
            }

            PeEntity _peEntity = entity.GetComponent <PeEntity>();

            if (_peEntity == null || _peEntity.Equals(null) || _peEntity.NpcCmpt == null || _peEntity.NpcCmpt.Equals(null))
            {
                return;
            }

            if (ContainsServant(_peEntity.NpcCmpt))
            {
                RemoveServant(_peEntity.NpcCmpt);
            }
        }
Ejemplo n.º 8
0
 void OnDamage(SkillSystem.SkEntity self, SkillSystem.SkEntity caster, float value)
 {
     if (PeCreature.Instance != null && PeCreature.Instance.mainPlayer != null)
     {
         PeEntity p            = PeCreature.Instance.mainPlayer;
         PeEntity targetEntity = self.GetComponent <Pathea.PeEntity>();
         PeEntity casterEntity = caster.GetComponent <Pathea.PeEntity>();
         if (targetEntity == null || casterEntity != p)
         {
             return;
         }
         float hp = targetEntity.GetAttribute(AttribType.Hp);
         if (hp <= 0 && hp + value > 0)
         {
             if (PeScenarioUtility.IsObjectContainEntity(monster, targetEntity))
             {
                 _current++;
             }
         }
     }
 }
Ejemplo n.º 9
0
        void OnAttack(SkillSystem.SkEntity skEntity, float damage)
        {
            PeEntity tarEntity = skEntity.GetComponent <PeEntity>();

            TransferHared(tarEntity, damage);
        }