Example #1
0
 private void FireAtTarget()
 {
     if (m_PetWeapon.ready)
     {
         m_PetWeapon.MakeShot();
     }
 }
Example #2
0
 private void CheckNewState()
 {
     if (pet.info.damageType == Common.WeaponDamageType.damage)
     {
         if (m_OwnerTarget.inCombat)
         {
             pet.SetState(new PetCombatState(pet));
         }
     }
     else if (pet.info.damageType == Common.WeaponDamageType.heal)
     {
         if (m_OwnerDamagable.health < m_OwnerDamagable.maximumHealth)
         {
             if (m_PetTarget.noTarget || m_PetTarget.IsNotTarget(pet.owner.Id))
             {
                 m_PetTarget.SetTarget(pet.owner);
             }
             m_PetWeapon.MakeShot();
         }
     }
 }